Class: TimeZone
Read Only
Localized time zone implementation to handle time zones.
Constructor
Initialize a TimeZone class using a zone ID.
init (string? zoneId)
- zoneId string? ()
Zone ID as a string or nil to initialize a TimeZone object with the system default time zone
Methods
fixedOffset | If always at a fixed offset from Utc, then this function returns it; otherwise nil. |
utcFromCivil | Converts a given |
utcToCivil | Converts a given |
Fields
- Fields Included from * & readonly
- readonly
fixedOffset
function fixedOffset() returns ZoneOffset?
Isolated Function
If always at a fixed offset from Utc, then this function returns it; otherwise nil.
utcFromCivil
Isolated Function
Converts a given time:Civil
value to an time:Utc
timestamp based on the time zone value.
Parameters
- civil Civil
time:Civil
time