Copy as Markdown[Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs-docusaurus.kinsta.page%2Fdataprime%2Flanguage-reference%2Ffunctions-reference%2Ftime%2Ftimeround.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fdocs-docusaurus.kinsta.page%2Fdataprime%2Flanguage-reference%2Ffunctions-reference%2Ftime%2Ftimeround.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)

# `timeRound`

Warning

`timeRound` is deprecated.

<!-- -->

<!-- -->

Use [\`roundTime\`](https://docs-docusaurus.kinsta.page/dataprime/language-reference/functions-reference/time/roundtime/.md) instead.

## Description

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://docs-docusaurus.kinsta.page/dataprime/language-reference/functions-reference/.md),<!-- --> **function** and **method**. These interchangeable forms allow flexibility in how you structure expressions.

* Function notation
* Method notation

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

```
(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 |
