Temporal.TimeZone - Web documentation
class Temporal.TimeZone
implements TimeZoneProtocol
Unstable

A Temporal.TimeZone is a representation of a time zone: either an IANA time zone, including information about the time zone such as the offset between the local time and UTC at a particular time, and daylight saving time (DST) changes; or simply a particular UTC offset with no DST.

Temporal.ZonedDateTime is the only Temporal type to contain a time zone. Other types, like Temporal.Instant and Temporal.PlainDateTime, do not contain any time zone information, and a Temporal.TimeZone object is required to convert between them.

See https://tc39.es/proposal-temporal/docs/timezone.html for more details.

Constructors

new
TimeZone(timeZoneIdentifier: string)

Properties

readonly
[Symbol.toStringTag]: "Temporal.TimeZone"
readonly
id: string

Methods

Static Methods