<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Locale/hourCycle-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation6LocaleV9hourCycleAC04HourD0Ovp"
  },
  "title" : "hourCycle"
}
-->

# hourCycle

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

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

## Discussion

When called on the special [`Locale`](/documentation/Foundation/Locale) instances [`current`](/documentation/Foundation/Locale/current) or [`autoupdatingCurrent`](/documentation/Foundation/Locale/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`](/documentation/Foundation/Locale/Components), this property represents the custom hour cycle. Otherwise, it represents the locale’s default hour cycle.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)