Skip to main content

timeRound

Warning
timeRound is deprecated. Use `roundTime` 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, function and method. These interchangeable forms allow flexibility in how you structure expressions.

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

Arguments

NameTypeRequiredDescription
datetimestamptrueThe timestamp to round
intervalintervaltrueThe interval that defines the rounding precision
Last updated on
On this page
Was this page helpful?