Floor Time to Interval

date-time · N114 · starter-package 7.0.1

Return the start of the fixed-length time bucket containing Date. Milliseconds is a positive integer. Origin defaults to the Unix epoch. Buckets work on either side of Origin.

Example

The ISO timestamps below are the values carried by DateTime connections. Connect the output of Parse Date or Create DateTime.

{"date":"1970-01-01T00:01:29.000Z","milliseconds":60000}

Result

{"result":"1970-01-01T00:01:00.000Z"}

Connector data types

DirectionConnectorTypeRequired
Inputdate — Datedatetimeyes
Inputmilliseconds — Millisecondsnumberyes
Inputorigin — Origindatetimeno
Outputresult — Resultdatetimeon success

Errors and recovery

Milliseconds must be a positive whole number. For five-minute buckets use 300000. Connect a DateTime to Origin to shift the boundaries.