---
title: hour
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/datecomponents/hour
---

# hour

An hour or count of hours.

## Declaration

```swift
var hour: Int? { get set }
```

## Discussion

Discussion note: This value is interpreted in the context of the calendar in which it is used.

## See Also

### Accessing Hours and Seconds

- [minute](foundation/datecomponents/minute.md)
- [second](foundation/datecomponents/second.md)
- [nanosecond](foundation/datecomponents/nanosecond.md)
