Return the start of a second for the given date.
The result will be in the local timezone.
Example
// The start of a second for 1 December 2014 22:15:45.400: constresult = startOfSecond(newDate(2014, 11, 1, 22, 15, 45, 400)) //=> Mon Dec 01 2014 22:15:45.000
The
Date
type, the function operates on. Gets inferred from passed arguments. Allows to use extensions likeUTCDate
.