Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Syntax

ROUNDTIME(<date>;<string, using a time constant>)

...

Time unitConstant
Dayd
Hourh
Minutem
Seconds

Limitation

This function can't be applied to an empty value. If a column contains empty values, consider adding a check for this, e.g.


 IF(ISBLANK(#DateColumn); null; ROUNDTIME(#DateColumn; "1d"))

Examples

DateTime constantROUNDTIME returns
Jan 12, 2013 08:33:127dJan 7, 2013 12:00:00 AM
Jan 12, 2013 08:33:123hJan 12, 2013 06:00:00 AM
Jan 12, 2013 08:33:1210mJan 12, 2013 08:30:00 AM
Jan 12, 2013 08:33:125sJan 12, 2013 08:33:10 AM

...