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