---
title: hours
framework: applepayontheweb
role: symbol
role_heading: Instance Property
path: applepayontheweb/applepaydatecomponents/hours
---

# hours

A number that represents an hour.

## Declaration

```data
long hours;
```

## Discussion

Discussion Hours of the day are 0-based. For example, to represent the time 06:00, use 6, and to represent midnight, use 0.

## See Also

### Date Components

- [years](applepayontheweb/applepaydatecomponents/years.md)
- [months](applepayontheweb/applepaydatecomponents/months.md)
- [days](applepayontheweb/applepaydatecomponents/days.md)
