Information about standard time conventions associated with a specific geopolitical region. Time zones represent the standard time policies for a geopolitical region. Time zones have identifiers like “America/Los_Angeles” and can also be identified by abbreviations, such as PST for Pacific Standard Time.
Load() This event is called when the object becames available in the current runtime system.
Unload() This event is called when the object has been removed from the current runtime system (but not yet deallocated).
var local: TimeZone Current system time zone. (read-only)
var system: TimeZone The time zone currently used by the system. (read-only)
var default: TimeZone The default time zone for the current app. If no defaultTimeZone time zone has been set, the current system time zone is used. If the current system time zone cannot be determined, the GMT time zone is used instead. The defaultTimeZone time zone is used by the app for date and time operations. You can set it to cause the app to run as if it were in a different time zone. Setting the defaultTimeZone property clears any value that was previously set.
var name: String The geopolitical region ID that identifies the receiver.
var abbreviation: String The abbreviation for the receiver, such as "EDT" (Eastern Daylight Time). (read-only)
var secondsFromGMT: Int The current difference in seconds between the receiver and Greenwich Mean Time. (read-only)
var isDaylightSavingTime: Bool A Boolean value that indicates whether the receiver is currently using daylight saving time. (read-only)
- func reset() Clears any time zone value cached for the system property.
- func TimeZone(identifier: String) Returns the time zone object identified by a given name/abbreviation.