Git.framework Reference Library

NSTimeZone(Offset) Category Reference

NSTimeZone(Offset) Category Reference

Declared in NSTimeZone+Offset.h

Tasks

Class Methods

timeZoneWithStringOffset:

+ (id)timeZoneWithStringOffset:(NSString *)offset
Parameters
offset

The timezone offset as a string such as "+0100"

Return Value

A time zone with the specified offset

Discussion

Creates and returns a time zone with the specified offset. The string is broken down into the hour and minute components which are then used to work out the number of seconds from GMT.

See Also
Declared In
NSTimeZone+Offset.h

Instance Methods

offsetString

- (NSString *)offsetString
Return Value

The receivers offset as a string in HHMM format.

Discussion

Returns the receivers offset as an HHMM formatted string.

Declared In
NSTimeZone+Offset.h

Last updated: 2011-2-20