---
url: /cube-functions/hour.md
description: Returns the hour component of a given time value.
---

# HOUR&#x20;

Returns the hour component of a given time value.

```js
HOUR(time_value)
```

#### Parameters

* `time_value` - The time value from which to extract the hour component.

#### Examples

```js
HOUR("13:30:45")

```

**Result:** `13`

**Note:** Returns the hour component (13) of the given time value (13:30:45).

```js
HOUR(0.75)

```

**Result:** `18`

**Note:** Returns the hour component (18) of the given time value (0.75), which represents 6:00:00 PM.
