klyn.time.TimeZone.TimeZone
constructor
public TimeZone(name as String, offsetHours as Int):
Description

Constructs a TimeZone object with a given name and offset.

Parameters
ParameterDescription
nameThe name of the time zone.
offsetThe offset in hours from UTC.
Example
import klyn.time

timeZone = TimeZone("GMT", 0)
print(timeZone.toString())  # Output: GMT (UTC+0)