mirror of
https://github.com/janet-lang/janet
synced 2024-10-04 17:40:40 +00:00
Formatting.
This commit is contained in:
parent
0b03ddb21b
commit
02f53ca014
@ -1906,9 +1906,9 @@ JANET_CORE_FN(os_mktime,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
JANET_CORE_FN(os_setlocale,
|
JANET_CORE_FN(os_setlocale,
|
||||||
"(os/setlocale category &opt locale)",
|
"(os/setlocale category &opt locale)",
|
||||||
"Set the system locale, which affects how dates, currencies, and numbers are formatted. "
|
"Set the system locale, which affects how dates and numbers are formatted. "
|
||||||
"Passing nil to locale will return the current locale.") {
|
"Passing nil to locale will return the current locale.") {
|
||||||
janet_arity(argc, 1, 2);
|
janet_arity(argc, 1, 2);
|
||||||
const char *locale_name = janet_optcstring(argv, argc, 1, NULL);
|
const char *locale_name = janet_optcstring(argv, argc, 1, NULL);
|
||||||
int category_int = 0;
|
int category_int = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user