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

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

Arguments

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