Type Method

timeZoneWithName:

Returns the time zone object identified by a given identifier.

Declaration

+ (instancetype)timeZoneWithName:(NSString *)tzName;

Parameters

tzName

The ID for the time zone.

Return Value

The time zone in the information directory with a name matching tzName. Returns nil if there is no match for the name.

See Also

Creating Time Zones

+ timeZoneWithName:data:

Returns the time zone with a given identifier whose data has been initialized using given data.

- initWithName:

Returns a time zone initialized with a given identifier.

- initWithName:data:

Initializes a time zone with a given identifier and time zone data.

+ timeZoneWithAbbreviation:

Returns the time zone object identified by a given abbreviation.

+ timeZoneForSecondsFromGMT:

Returns a time zone object offset from Greenwich Mean Time by a given number of seconds.

knownTimeZoneNames

Returns an array of strings listing the IDs of all the time zones known to the system.

abbreviationDictionary

Returns a dictionary holding the mappings of time zone abbreviations to time zone names.