klyn.time.TimeZone.TimeZone
constructor
public TimeZone(name as String, offsetHours as Int):
Description
Constructs a TimeZone object with a given name and offset.
import klyn.time

timeZone = TimeZone("GMT", 0)
print(timeZone.toString())  # Output: GMT (UTC+0)
Parameters
  • 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) ```