Attempt at supporting locale and timezones (#1)

This commit is contained in:
Guillaume Maudoux
2020-01-21 23:48:16 +01:00
committed by Michael Cordover
parent 6e30b7af3c
commit 84b671f6b2
3 changed files with 43 additions and 28 deletions

View File

@ -18,13 +18,19 @@ The *clock* module displays the current date and time.
*format*: ++
typeof: string ++
default: {:%H:%M} ++
The format, how the date and time should be displayed.
The format, how the date and time should be displayed. ++
It uses the format of the date library. See https://howardhinnant.github.io/date/date.html#to_stream_formatting for details.
*timezone*: ++
typeof: string ++
default: inferred local timezone ++
The timezone to display the time in, e.g. America/New_York.
*locale*: ++
typeof: string ++
default: inferred from current locale ++
A locale to be used to display the time. Intended to render times in custom timezones with the proper language and format.
*max-length*: ++
typeof: integer ++
The maximum length in character the module should display.