public class TimeZone extends Object implements ValueType:
Represents a fixed time-zone offset, including its name and offset from UTC.
A TimeZone does not contain an IANA transition history. TimeZone.local returns the operating system offset applicable when the property is read.
import klyn.time timeZone = TimeZone.UTC print(timeZone.toString()) # Output: UTC (UTC+0)
| Modifier and Type | Member | Description |
|---|---|---|
| public static readonly property | UTCUTC as TimeZone: |
UTC timezone. |
| public static readonly property | locallocal as TimeZone: |
Returns the operating system's current local timezone offset. |
| public readonly property | namename as String: |
IANA-like short identifier (examples: UTC, CET). |
| public readonly property | offsetHoursoffsetHours as Int: |
Offset from UTC in hours. |
| public readonly property | offsetMinutesoffsetMinutes as Int: |
Total offset from UTC in minutes. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | TimeZone | Constructs a TimeZone object with a given name and offset. |
| Modifier and Type | Member | Description |
|---|---|---|
| public override | toStringtoString() as String: |
Returns a string representation of this TimeZone object. |