---
title: CFTimeZone
framework: corefoundation
role: symbol
role_heading: Class
path: corefoundation/cftimezone
---

# CFTimeZone

## Declaration

```swift
class CFTimeZone
```

## Overview

Overview CFTimeZone defines the behavior of time zone objects. Time zone objects represent geopolitical regions. Consequently, these objects have names for these regions. Time zone objects also represent a temporal offset, either plus or minus, from Greenwich Mean Time (GMT) and an abbreviation (such as PST for Pacific Standard Time). CFTimeZone provides several functions to create time zone objects: CFTimeZoneCreateWithName(_:_:_:) and CFTimeZoneCreateWithTimeIntervalFromGMT(_:_:). CFTimeZone also permits you to set the default time zone within your application using the CFTimeZoneSetDefault(_:) function. You can access this default time zone at any time with the CFTimeZoneCopyDefault() function. CFTimeZone is “toll-free bridged” with its Cocoa Foundation counterpart, NSTimeZone. This means that the Core Foundation type is interchangeable in function or method calls with the bridged Foundation object. Therefore, in a method where you see an NSTimeZone * parameter, you can pass in a CFTimeZoneRef, and in a function where you see a CFTimeZoneRef parameter, you can pass in an NSTimeZone instance. This fact also applies to concrete subclasses of NSTimeZone. See Toll-Free Bridged Types for more information on toll-free bridging.

## Topics

### Creating a Time Zone

- [CFTimeZoneCreateWithName(_:_:_:)](corefoundation/cftimezonecreatewithname(_:_:_:).md)
- [CFTimeZoneCreateWithTimeIntervalFromGMT(_:_:)](corefoundation/cftimezonecreatewithtimeintervalfromgmt(_:_:).md)
- [CFTimeZoneCreate(_:_:_:)](corefoundation/cftimezonecreate(_:_:_:).md)

### System and Default Time Zones and Information

- [CFTimeZoneCopyAbbreviationDictionary()](corefoundation/cftimezonecopyabbreviationdictionary().md)
- [CFTimeZoneCopyAbbreviation(_:_:)](corefoundation/cftimezonecopyabbreviation(_:_:).md)
- [CFTimeZoneCopyDefault()](corefoundation/cftimezonecopydefault().md)
- [CFTimeZoneCopySystem()](corefoundation/cftimezonecopysystem().md)
- [CFTimeZoneSetDefault(_:)](corefoundation/cftimezonesetdefault(_:).md)
- [CFTimeZoneCopyKnownNames()](corefoundation/cftimezonecopyknownnames().md)
- [CFTimeZoneResetSystem()](corefoundation/cftimezoneresetsystem().md)
- [CFTimeZoneSetAbbreviationDictionary(_:)](corefoundation/cftimezonesetabbreviationdictionary(_:).md)

### Getting Information About Time Zones

- [CFTimeZoneGetName(_:)](corefoundation/cftimezonegetname(_:).md)
- [CFTimeZoneCopyLocalizedName(_:_:_:)](corefoundation/cftimezonecopylocalizedname(_:_:_:).md)
- [CFTimeZoneGetSecondsFromGMT(_:_:)](corefoundation/cftimezonegetsecondsfromgmt(_:_:).md)
- [CFTimeZoneGetData(_:)](corefoundation/cftimezonegetdata(_:).md)

### Getting Daylight Savings Time Information

- [CFTimeZoneIsDaylightSavingTime(_:_:)](corefoundation/cftimezoneisdaylightsavingtime(_:_:).md)
- [CFTimeZoneGetDaylightSavingTimeOffset(_:_:)](corefoundation/cftimezonegetdaylightsavingtimeoffset(_:_:).md)
- [CFTimeZoneGetNextDaylightSavingTimeTransition(_:_:)](corefoundation/cftimezonegetnextdaylightsavingtimetransition(_:_:).md)

### Getting the CFTimeZone Type ID

- [CFTimeZoneGetTypeID()](corefoundation/cftimezonegettypeid().md)

### Data Types

- [CFTimeZoneNameStyle](corefoundation/cftimezonenamestyle.md)

### Constants

- [Notification Name](corefoundation/notification-name.md)
- [Time Zone Name Styles](corefoundation/time_zone_name_styles.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)

## See Also

### Related Documentation

- [Date and Time Programming Guide for Core Foundation](apple-archive/documentation/CoreFoundation/Conceptual/CFDatesAndTimes.md)

### Opaque Types

- [CFAllocator](corefoundation/cfallocator.md)
- [CFArray](corefoundation/cfarray.md)
- [CFAttributedString](corefoundation/cfattributedstring.md)
- [CFBag](corefoundation/cfbag.md)
- [CFBinaryHeap](corefoundation/cfbinaryheap.md)
- [CFBitVector](corefoundation/cfbitvector.md)
- [CFBoolean](corefoundation/cfboolean.md)
- [CFBundle](corefoundation/cfbundle.md)
- [CFCalendar](corefoundation/cfcalendar.md)
- [CFCharacterSet](corefoundation/cfcharacterset.md)
- [CFData](corefoundation/cfdata.md)
- [CFDate](corefoundation/cfdate.md)
- [CFDateFormatter](corefoundation/cfdateformatter.md)
- [CFDictionary](corefoundation/cfdictionary.md)
- [CFError](corefoundation/cferror.md)
