Function

CFTimeZoneCreateWithTimeIntervalFromGMT

Returns a time zone object for the specified time interval offset from Greenwich Mean Time (GMT).

Declaration

CFTimeZoneRef CFTimeZoneCreateWithTimeIntervalFromGMT(CFAllocatorRef allocator, CFTimeInterval ti);

Parameters

allocator

The allocator object to use to allocate memory for the new time zone. Pass NULL or kCFAllocatorDefault to use the current default allocator.

ti

The offset, from GMT, of the new time zone.

Return Value

A new time zone whose offset from GMT is given by the interval ti. The name of the new time zone is GMT +/- the offset, in hours and minutes. Time zones created with this function never have daylight savings, and the offset is constant no matter what the date. Ownership follows the The Create Rule.

See Also

Creating a Time Zone

CFTimeZoneCreateWithName

Returns the time zone object identified by a given name or abbreviation.

CFTimeZoneCreate

Creates a time zone with a given name and data.