Luxon Manual Reference
import LocalZone from 'luxon/src/zones/localZone.js'
public class | source

LocalZone

Extends:

Zone → LocalZone

Implements:

Represents the local zone for this Javascript environment.

Static Member Summary

Static Public Members
public static get

Get a singleton instance of the local zone

Member Summary

Public Members
public get
public get
public get
public get

Method Summary

Public Methods
public

equals(otherZone: *): *

public

formatOffset(ts: *, format: *): *

public

offset(ts: *): *

public

offsetName(ts: *, objectPattern1: {"format": *, "locale": *}): *

Inherited Summary

From class Zone
public get abstract

Return whether this Zone is valid.

public get abstract

The name of this zone.

public get abstract

The type of zone

public get abstract

Returns whether the offset is known to be fixed for the whole year.

public abstract

equals(otherZone: Zone): boolean

Return whether this Zone is equal to another zone

public abstract

formatOffset(ts: number, format: string): string

Returns the offset's value as a string

public abstract

Return the offset in minutes for this zone at the specified timestamp.

public abstract

Returns the offset's common name (such as EST) at the specified timestamp

Static Public Members

public static get instance: LocalZone: * source

Get a singleton instance of the local zone

Return:

LocalZone

Public Members

public get isValid: boolean source

Return whether this Zone is valid.

Override:

Zone#isValid

public get name: string source

The name of this zone.

Override:

Zone#name

public get type: string source

The type of zone

Override:

Zone#type

public get universal: boolean source

Returns whether the offset is known to be fixed for the whole year.

Override:

Zone#universal

Public Methods

public equals(otherZone: *): * source

Return whether this Zone is equal to another zone

Override:

Zone#equals

Params:

NameTypeAttributeDescription
otherZone *

Return:

*

public formatOffset(ts: *, format: *): * source

Returns the offset's value as a string

Override:

Zone#formatOffset

Params:

NameTypeAttributeDescription
ts *
format *

Return:

*

public offset(ts: *): * source

Return the offset in minutes for this zone at the specified timestamp.

Override:

Zone#offset

Params:

NameTypeAttributeDescription
ts *

Return:

*

public offsetName(ts: *, objectPattern1: {"format": *, "locale": *}): * source

Returns the offset's common name (such as EST) at the specified timestamp

Override:

Zone#offsetName

Params:

NameTypeAttributeDescription
ts *
objectPattern1 {"format": *, "locale": *}
  • default: {"format":null,"locale":null}

Return:

*