Contents

TimeZone

Information about standard time conventions associated with a specific geopolitical region.

Declaration

struct TimeZone

Overview

TimeZone defines the behavior of a time zone. Time zone values represent geopolitical regions. Consequently, these values have names for these regions. Time zone values also represent a temporal offset, either plus or minus, from Greenwich Mean Time (GMT) and an abbreviation (such as PST for Pacific Standard Time).

TimeZone provides two static functions to get time zone values: current and autoupdatingCurrent. The autoupdatingCurrent time zone automatically tracks updates made by the user.

Note that time zone database entries such as “America/Los_Angeles” are IDs, not names. An example of a time zone name is “Pacific Daylight Time”. Although many TimeZone functions include the word “name”, they refer to IDs.

Cocoa does not provide any API to change the time zone of the computer, or of other applications.

Topics

Getting the Current Time Zone

Creating a Time Zone

Getting Time Zone Information

Working with Daylight Savings

Describing Time Zones

Working with notification messages

Using Reference Types

Initializers

Type Aliases

Type Properties

See Also

Calendrical Calculations