Excerpt | ||
---|---|---|
| ||
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.
...
Argument | Type | Description |
---|---|---|
startDtm | DateTime | Start time as a string but with a certain format - see date string format. |
endDtm | DateTime | End time as a string but with a certain format - see date string format. |
slotSize | Integer | The 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"]