Time
timezoneOffset
- timezoneOffset(timezone)
- return timezone offset in seconds against the UTC timezone
- the offset is calculated for the current time (of execution)
let offset2 = timezoneOffset("America/New_York")
let offset3 = timezoneOffset("Europe/Berlin")
printf("America/New_York offset: %d", offset2) // America/New_York offset: -14400
printf("Europe/Berlin offset: %d", offset3) // Europe/Berlin offset: 7200
Options currently in use: (see tz database for more zone options)
America/New_York
America/Chicago
America/Winnipeg
America/Denver
America/Phoenix
Europe/London
Europe/Berlin
Africa/Johannesburg