---
title: hourCycle
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/locale/hourcycle-swift.property
---

# hourCycle

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

## Declaration

```swift
var hourCycle: Locale.HourCycle { get }
```

## Discussion

Discussion When called on the special Locale instances current or autoupdatingCurrent, if the user overrode the default hour cycle, this property provides the user’s preference. This property corresponds to the hc key of the Unicode BCP 47 extension. For locale instances created with the hc specifier (such as en-US@hc=h23), or with a custom Locale.Components, this property represents the custom hour cycle. Otherwise, it represents the locale’s default hour cycle.

## See Also

### Getting date and time components

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