---
title: "twoDigits(clock:hourCycle:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/date/formatstyle/symbol/verbatimhour/twodigits(clock:hourcycle:)"
---

# twoDigits(clock:hourCycle:)

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

## Declaration

```swift
static func twoDigits(clock: Date.FormatStyle.Symbol.VerbatimHour.Clock, hourCycle: Date.FormatStyle.Symbol.VerbatimHour.HourCycle) -> Date.FormatStyle.Symbol.VerbatimHour
```

## Parameters

- `clock`: The clock representation.
- `hourCycle`: The start of the clock representation.

## Return Value

Return Value An hour format style customized according to the specified clock representation and the start of the clock representation.

## See Also

### Modifying a Verbatim Hour

- [defaultDigits(clock:hourCycle:)](foundation/date/formatstyle/symbol/verbatimhour/defaultdigits(clock:hourcycle:).md)
