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 get |
Get the default locale to create DateTimes with. |
|
public static set |
Set the default locale to create DateTimes with. |
|
public static get |
Get the default time zone object to create DateTimes in. |
|
public static get |
Set 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 Public Members
public static get defaultLocale: string source
Get the default locale to create DateTimes with. Does not affect existing instances.
public static set defaultLocale: string source
Set the default locale 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.