Instance Method

initWithName:data:

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

Declaration

- (instancetype)initWithName:(NSString *)tzName data:(NSData *)aData;

Parameters

tzName

The identifier for the time zone. Providing nil for this parameter raises an invalid argument exception.

data

This parameter is ignored.

Discussion

As of macOS 10.6, the underlying implementation of this method has been changed to ignore the specified data parameter.

See Also

Creating Time Zones

+ timeZoneWithName:

Returns the time zone object identified by a given identifier.

+ 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.

+ 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.