# `timeRound`

## Description

Warning

`timeRound` is depricated. Use [`roundTime`](https://coralogix.com/docs/dataprime/language-reference/functions-reference/time/roundtime/index.md) instead.

Returns a timestamp rounded down to a specified interval. This function is deprecated in favor of `roundTime`.

## Syntax

Like many functions in DataPrime, `timeRound` supports [two notations](https://coralogix.com/docs/dataprime/language-reference/functions-reference/index.md), **function** and **method** notation. These interchangeable forms allow flexibility in how you structure expressions.

```dataprime
timeRound(date: timestamp, interval: interval): timestamp
```

```dataprime
(date: timestamp).timeRound(interval: interval): timestamp
```

## Arguments

| Name     | Type      | Required | Description                                      |
| -------- | --------- | -------- | ------------------------------------------------ |
| date     | timestamp | **true** | The timestamp to round                           |
| interval | interval  | **true** | The interval that defines the rounding precision |
