fluent.DateTimeOptions
The options of fluent.DateTime and DATETIME, a subset of Intl.DateTimeFormat options.
The component options pick the closest locale style:
weekday-"full"date;month: "long"-"long"date;month: "short"-"medium"date;year,monthorday-"short"date;second-"medium"time;hourorminute-"short"time.
timeZone can be set only from Lua, translators can not change it.
Fields
| Name | Type | Description |
|---|---|---|
dateStyle | "full" | "long" | "medium" | "short" | nil | The date style. |
timeStyle | "full" | "long" | "medium" | "short" | nil | The time style, "long" and "full" are the same as "medium". |
weekday | string | nil | Shows the weekday. |
year | string | nil | Shows the year. |
month | string | nil | Shows the month. |
day | string | nil | Shows the day. |
hour | string | nil | Shows the hour. |
minute | string | nil | Shows the minute. |
second | string | nil | Shows the second. |
hour12 | boolean | "true" | "false" | nil | Overrides the locale 12/24-hour clock. |
timeZone | string | nil | "UTC" formats the UTC time, any other value or nil formats the local time. |