Skip to content

timeRound - Rounds a timestamp to a given interval

Deprecated: use roundTime instead

timeRound is a deprecated function for lowering the precision of timestamp values to a desired interval.

Syntax

Like many functions in DataPrime, timeRound supports two notations, function and method notation. These interchangeable forms allow flexibility in how you structure expressions.

timeRound(left: interval, right: interval): interval
left: interval.timeRound(right: interval): interval

Arguments

NameTypeRequiredDescription
datetimestamptrueThe timestamp to round
intervalintervaltrueThe interval that represents the desired precision of the timestamp