<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Date/FormatStyle/Symbol/VerbatimHour",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation4DateV11FormatStyleV6SymbolV12VerbatimHourV"
  },
  "title" : "Date.FormatStyle.Symbol.VerbatimHour"
}
-->

# Date.FormatStyle.Symbol.VerbatimHour

A type that specifies a format for the hour in a date format style.

```
struct VerbatimHour
```

## Topics

### Modifying a Verbatim Hour

[`static func defaultDigits(clock: Date.FormatStyle.Symbol.VerbatimHour.Clock, hourCycle: Date.FormatStyle.Symbol.VerbatimHour.HourCycle) -> Date.FormatStyle.Symbol.VerbatimHour`](/documentation/Foundation/Date/FormatStyle/Symbol/VerbatimHour/defaultDigits(clock:hourCycle:))

Creates a custom format style portraying the minimum number of digits that represents the hour.

[`static func twoDigits(clock: Date.FormatStyle.Symbol.VerbatimHour.Clock, hourCycle: Date.FormatStyle.Symbol.VerbatimHour.HourCycle) -> Date.FormatStyle.Symbol.VerbatimHour`](/documentation/Foundation/Date/FormatStyle/Symbol/VerbatimHour/twoDigits(clock:hourCycle:))

Creates a custom format style portraying two digits that represent the hour.

### Supporting Structures

[`struct Clock`](/documentation/Foundation/Date/FormatStyle/Symbol/VerbatimHour/Clock)

A type that specifies a clock representation for the format of an hour.

[`struct HourCycle`](/documentation/Foundation/Date/FormatStyle/Symbol/VerbatimHour/HourCycle)

A type that specifies the start of a clock representation for the format of a hour.

### Comparing a Verbatim Hour

[`static func == (Date, Date) -> Bool`](/documentation/Foundation/Date/==(_:_:))

Returns true if the two `Date` values represent the same point in time.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

---

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)