Settings
Settings contains static getters and setters that control Luxon's overall behavior. Luxon is a simple library with few options, but the ones it does have live here.
Static Member Summary
| Static Public Members | ||
| public static set |
Set the default locale to create DateTimes with. |
|
| public static get |
Get the default locale to create DateTimes with. |
|
| public static get |
Get the default numbering system to create DateTimes with. |
|
| public static set |
Set the default numbering system to create DateTimes with. |
|
| public static get |
Get the default output calendar to create DateTimes with. |
|
| public static set |
Set the default output calendar to create DateTimes with. |
|
| public static get |
Get the default time zone object to create DateTimes in. |
|
| public static get |
Get the default time zone to create DateTimes in. |
|
| public static set |
Set the default time zone to create DateTimes in. |
|
| public static get |
Get the callback for returning the current timestamp. |
|
| public static set |
Set the callback for returning the current timestamp. |
|
| public static get |
Get whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals |
|
| public static set |
Set whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals |
|
Static Method Summary
| Static Public Methods | ||
| public static |
resetCaches(): void Reset Luxon's global caches. Should only be necessary in testing scenarios. |
|
Static Public Members
public static set defaultLocale: string source
Set the default locale to create DateTimes with. Does not affect existing instances.
public static get defaultLocale: string source
Get the default locale to create DateTimes with. Does not affect existing instances.
public static get defaultNumberingSystem: string source
Get the default numbering system to create DateTimes with. Does not affect existing instances.
public static set defaultNumberingSystem: string source
Set the default numbering system to create DateTimes with. Does not affect existing instances.
public static get defaultOutputCalendar: string source
Get the default output calendar to create DateTimes with. Does not affect existing instances.
public static set defaultOutputCalendar: string source
Set the default output calendar to create DateTimes with. Does not affect existing instances.
public static get defaultZone: Zone source
Get the default time zone object to create DateTimes in. Does not affect existing instances.
public static set defaultZoneName: string source
Set the default time zone to create DateTimes in. Does not affect existing instances.
Static Public Methods
public static resetCaches(): void source
Reset Luxon's global caches. Should only be necessary in testing scenarios.
Return:
| void |