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

FixedOffsetZone

Extends:

Zone → FixedOffsetZone

Implements:

A zone with a fixed offset (i.e. no DST)

Static Member Summary

Static Public Members
public static get

Get a singleton instance of UTC

Static Method Summary

Static Public Methods
public static

Get an instance with a specified offset

public static

Get an instance of FixedOffsetZone from a UTC offset string, like "UTC+6"

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get
public get

name: *

public get
public get

Method Summary

Public Methods
public

equals(otherZone: *): *

public

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

public

offset(): *

public

offsetName(): *

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 utcInstance: FixedOffsetZone: * source

Get a singleton instance of UTC

Return:

FixedOffsetZone

Static Public Methods

public static instance(offset: number): FixedOffsetZone source

Get an instance with a specified offset

Params:

NameTypeAttributeDescription
offset number

The offset in minutes

Return:

FixedOffsetZone

public static parseSpecifier(s: string): FixedOffsetZone source

Get an instance of FixedOffsetZone from a UTC offset string, like "UTC+6"

Params:

NameTypeAttributeDescription
s string

The offset string to parse

Return:

FixedOffsetZone

Example:

FixedOffsetZone.parseSpecifier("UTC+6")
FixedOffsetZone.parseSpecifier("UTC+06")
FixedOffsetZone.parseSpecifier("UTC-6:00")

Public Constructors

public constructor() source

Public Members

public get isValid: boolean source

Return whether this Zone is valid.

Override:

Zone#isValid

public get name: * 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(): * source

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

Override:

Zone#offset

Return:

*

public offsetName(): * source

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

Override:

Zone#offsetName

Return:

*