ZoneRegion
Extends:
A geographical region where the same time-zone rules apply.
Time-zone information is categorized as a set of rules defining when and how the offset from UTC/Greenwich changes. These rules are accessed using identifiers based on geographical regions, such as countries or states. The most common region classification is the Time Zone Database (TZDB), which defines regions such as 'Europe/Paris' and 'Asia/Tokyo'.
The region identifier, modeled by this class, is distinct from the underlying rules, modeled by ZoneRules. The rules are defined by governments and change frequently. By contrast, the region identifier is well-defined and long-lived. This separation also allows rules to be shared between regions if appropriate.
Specification for implementors
This class is immutable and thread-safe.
Static Method Summary
Static Public Methods | ||
public static |
not yet implemented |
Constructor Summary
Public Constructor | ||
public |
constructor(id: string, rules: ZoneRules) Constructor. |
Inherited Summary
From class ZoneId | ||
public |
Checks if this time-zone ID is equal to another time-zone ID. |
|
public |
A hash code for this time-zone ID. |
|
public |
Gets the unique time-zone ID. |
|
public |
normalized(): ZoneId Normalizes the time-zone ID, returning a ZoneOffset where possible. |
|
public |
Gets the time-zone rules for this ID allowing calculations to be performed. |
|
public |
Outputs this zone as a string, using the ID. |