Luxon Manual Reference
import Zone from 'luxon/src/zone.js'
public interface | source

Zone

Member Summary

Public Members
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.

Method Summary

Public Methods
public abstract

equals(otherZone: Zone): boolean

Return whether this Zone is equal to another zoner

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

Public Members

public get abstract isValid: boolean source

Return whether this Zone is valid.

public get abstract name: string source

The name of this zone.

public get abstract type: string source

The type of zone

public get abstract universal: boolean source

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

Public Methods

public abstract equals(otherZone: Zone): boolean source

Return whether this Zone is equal to another zoner

Params:

NameTypeAttributeDescription
otherZone Zone

the zone to compare

Return:

boolean

public abstract offset(ts: number): number source

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

Params:

NameTypeAttributeDescription
ts number

Epoch milliseconds for which to compute the offset

Return:

number

public abstract offsetName(ts: number, opts: Object): string source

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

Params:

NameTypeAttributeDescription
ts number

Epoch milliseconds for which to get the name

opts Object

Options to affect the format

opts.format string

What style of offset to return. Accepts 'long' or 'short'.

opts.locale string

What locale to return the offset name in.

Return:

string