Sets the minute in UTC. Optionally sets the second and
millisecond.
Parameters |
Description |
min |
The minute in UTC where the minutes in an hour
are 0 through 59. |
sec |
The second in UTC where the seconds in a minute
are 0 through 59. |
ms |
The millisecond in UTC where the milliseconds
in a second are 0 through 999. |
Return value |
Description |
long |
The new time in numeric format. |
Examples
This computed label sets the current
time with the minutes, second, and millisecond at 0.
var date = new Date();
date.setUTCMinutes(0, 0, 0);
date.toUTCString()