Instance Method

secondsFromGMTForDate:

Returns the difference in seconds between the receiver and Greenwich Mean Time at a given date.

Declaration

- (NSInteger)secondsFromGMTForDate:(NSDate *)aDate;

Parameters

aDate

The date against which to test the receiver.

Return Value

The difference in seconds between the receiver and Greenwich Mean Time at aDate.

Discussion

The difference may be different from the current difference if the time zone changes its offset from GMT at different points in the year—for example, the U.S. time zones change with daylight saving time.

See Also

Getting Time Zone Information

name

The geopolitical region ID that identifies the receiver.

abbreviation

The abbreviation for the receiver, such as “EDT” (Eastern Daylight Time).

- abbreviationForDate:

Returns the abbreviation for the receiver at a given date.

secondsFromGMT

The current difference in seconds between the receiver and Greenwich Mean Time.

data

The data that stores the information used by the receiver.

timeZoneDataVersion

Returns the time zone data version.

NSTimeZoneNameStyle

Constants you use to specify a style when presenting time zone names.