---
title: hourCycle
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/locale/components/hourcycle
---

# hourCycle

The hour cycle used by the locale, like one-to-twelve or zero-to-twenty-three.

## Declaration

```swift
var hourCycle: Locale.HourCycle?
```

## Discussion

Discussion Set this property to override the locale’s default hour cycle. To request the default hour cycle used by the locale, use the Locale property hourCycle. This property corresponds to the hc key of the Unicode BCP 47 extension.

## See Also

### Specifying date and time components

- [calendar](foundation/locale/components/calendar.md)
- [Calendar.Identifier](foundation/calendar/identifier-swift.enum.md)
- [firstDayOfWeek](foundation/locale/components/firstdayofweek.md)
- [Locale.Weekday](foundation/locale/weekday.md)
- [Locale.HourCycle](foundation/locale/hourcycle-swift.enum.md)
- [timeZone](foundation/locale/components/timezone.md)
