Versions Compared

Key

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



Excerpt
hiddentrue

timeSlots(startDtm, endDtm, slotSize) Calculates the number of timeslots of the given slot size covered by the given start and end times.


Function: timeSlots()

Calculates the number of timeslots of the given slot size covered by the given start and end times and returns an array containing the start times of each slot.

...

ArgumentTypeDescription
startDtmDateTimeStart time as a string but with a certain format - see date string format.
endDtmDateTimeEnd time as a string but with a certain format - see date string format.
slotSizeIntegerThe size of each slot (in seconds).

Examples

slotSize(in.startDTM, in.endDTM, 600)

The input record "in" has "20080101.102723" as the startDTM and "20080101.105602" as the endDTM

...

The result would therefore be:

["20080101.102000","20080101.103000","20080101.104000","20080101.105000"]

See Also