Skip to content

Modern Tz TimeZone Id

Paul Squires edited this page Nov 11, 2026 · 1 revision

Home › Time Zones › Time Zones (std/tz) › TimeZone.Id

TimeZone.Id

Returns the zone's id: its IANA name, UTC, or a fixed offset such as +05:30.

Syntax

TimeZone.Id as ustring

Notes

  • "" for an Invalid zone, and for the Local zone when its IANA id is unknown.

Examples

#import "std/tz"
#import "std/tzdata"
#import "std/chrono"
using tz
print TimeZone.FindById( "america/NEW_york" ).Id     '' America/New_York

Library: Time Zones (std/tz)
Category: Time Zones
Documented under: TimeZone

Clone this wiki locally