public TimeZone(name as String, offsetHours as Int, minuteOffset as Int = 0):
Constructs a TimeZone object with a given name and offset.
| Parameter | Description |
|---|---|
name | The name of the time zone. |
offsetHours | The offset in whole hours from UTC. |
minuteOffset | Signed minute component of the UTC offset. |
import klyn.time
timeZone = TimeZone("GMT", 0)
print(timeZone.toString()) # Output: GMT (UTC+0)