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