# justify_hours function
Adjust interval so 24-hour time periods are represented as days

> For the complete documentation index, see [llms.txt](https://preview.materialize.com/materialize/40269/llms.txt).


`justify_hours` returns a new [`interval`](https://preview.materialize.com/materialize/40269/markdown-docs/sql/types/interval/index.md) such that 24-hour time periods are
converted to days.

## Signatures



```mzsql
justify_hours ( <interval> )

```

| Syntax element | Description |
| --- | --- |
| `<interval>` | An [`interval`](https://preview.materialize.com/materialize/40269/markdown-docs/sql/types/interval/index.md) value to justify. Returns a new interval such that 24-hour time periods are converted to days.  |


Parameter | Type                                                                                                                                                                                            | Description
----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------
_interval_ | [`interval`](https://preview.materialize.com/materialize/40269/markdown-docs/sql/types/interval/index.md) | The interval value to justify.


### Return value

`justify_hours` returns an [`interval`](https://preview.materialize.com/materialize/40269/markdown-docs/sql/types/interval/index.md) value.

## Example

```mzsql
SELECT justify_hours(interval '27 hours');
```
```nofmt
 justify_hours
----------------
 1 day 03:00:00
```
