setUTCMinutes (JavaScript)

Sets the minute in UTC. Optionally sets the second and millisecond.

Defined in

Date (Standard - JavaScript)

Syntax

setUTCMinutes(min:int) : long

setUTCMinutes(min:int, sec:int) : long

setUTCMinutes(min:int, sec:int, ms:int) : long
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()