---
url: /cube-functions/time.md
description: Returns the time value from hour, minute and second components.
---

# TIME&#x20;

Returns the time value from hour, minute and second components.

```js
TIME(hour, minute, second)
```

#### Parameters

* `hour` - The hour component of the time value.
* `minute` - The minute component of the time value.
* `second` - The second component of the time value.

#### Examples

```js
TIME(13, 30, 45)

```

**Result:** `0.563020833`

**Note:** Returns the time value for 1:30:45 PM.

```js
TIME(23, 59, 59)

```

**Result:** `0.999988426`

**Note:** Returns the time value for 11:59:59 PM.
