ToEpochRounded
This section contains reference documentation for the toEpochRounded functions.
Was this helpful?
This section contains reference documentation for the toEpochRounded functions.
Convert epoch milliseconds to epoch , round to nearest rounding bucket(Bucket size is defined in ) The following time units are supported:
SECONDS
MINUTES
HOURS
DAYS
ToEpoch<TIME_UNIT>Rounded(timeInMillis, bucketSize)
select ToEpochSecondsRounded(1613472303000, 1000) AS epochSeconds
FROM ignoreMe1613472000
select ToEpochMinutesRounded(1613472303000, 10) AS epochMins
FROM ignoreMe26891200
select ToEpochHoursRounded(1613472303000, 5) AS epochHours
FROM ignoreMe448185
18670
Was this helpful?
Was this helpful?
select ToEpochDaysRounded(1613472303000, 10) AS epochDays
FROM ignoreMe
