# hour {#hour}

## Syntax {#syntax}

`hour(X)`

## Arguments {#arguments}

**X** is a temporal scalar/vector.

## Details {#details}

Return the corresponding hour\(s\).

**Return value**: an integer.

## Examples {#examples}

```
hour(2012.12.03 01:22:01);
// output: 1
```

Related functions: [date](../d/date.md), [second](../s/second.md), [minute](../m/minute.md), [month](../m/month.md), [year](../y/year.md)

