---
title: CFCalendarUnit
framework: corefoundation
role: symbol
role_heading: Structure
path: corefoundation/cfcalendarunit
---

# CFCalendarUnit

CFCalendarUnit constants are used to specify calendrical units, such as day or month, in various calendar calculations.

## Declaration

```swift
struct CFCalendarUnit
```

## Topics

### Constants

- [era](corefoundation/cfcalendarunit/era.md)
- [year](corefoundation/cfcalendarunit/year.md)
- [month](corefoundation/cfcalendarunit/month.md)
- [day](corefoundation/cfcalendarunit/day.md)
- [hour](corefoundation/cfcalendarunit/hour.md)
- [minute](corefoundation/cfcalendarunit/minute.md)
- [second](corefoundation/cfcalendarunit/second.md)
- [week](corefoundation/cfcalendarunit/week.md)
- [weekday](corefoundation/cfcalendarunit/weekday.md)
- [weekdayOrdinal](corefoundation/cfcalendarunit/weekdayordinal.md)
- [quarter](corefoundation/cfcalendarunit/quarter.md)
- [weekOfMonth](corefoundation/cfcalendarunit/weekofmonth.md)
- [weekOfYear](corefoundation/cfcalendarunit/weekofyear.md)
- [yearForWeekOfYear](corefoundation/cfcalendarunit/yearforweekofyear.md)

### Initializers

- [init(rawValue:)](corefoundation/cfcalendarunit/init(rawvalue:).md)

### Type Properties

- [dayOfYear](corefoundation/cfcalendarunit/dayofyear.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Constants

- [Component Wrapping Options](corefoundation/1533520-component-wrapping-options.md)
