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