Page tree
Skip to end of metadata
Go to start of metadata


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


Rounds a date field down to the nearest (s)econd, (m)inute, (h)our, or (d)ay set by a time constant.

Time constants for ROUNDTIME:

Time unitConstant


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

Datameer always uses the following format:

Three character month abbreviation (space) two digit day (comma)(space) four digit year (space) two digit hour (colon) two digit minute (colon) two digit second (space) two character meridiem notation.

(e.g., 12.01.2012 gets transferred to Jan 12, 2012 12:00:00 AM)

When selecting a pattern, you select the way the data gets parsed (your input format, this can be connected to your systems representation of dates and times).

  • No labels