JavaScript Date getUTCMinutes()
Examples
Get the UTC minutes:
let minutes = d.getUTCMinutes();
Get the UTC minutes from a specific date:
let minutes = d.getUTCMinutes();
More examples below.
Description
getUTCMinutes() returns the minutes (0 to 59) of a date.
getUTCMinutes() returns the minutes according to UTC.
Notes
UTC (Universal Time Coordinated) is the time set by the World Time Standard.
UTC time is the same as GMT time (Greenwich Mean Time).
All JavaScript getUTC methods assume that the date is of local time.
Syntax
Parameters
Return Value
Browser Support
getUTCMinutes() is an ECMAScript1 (JavaScript 1997) feature.
It is supported in all browsers:
| Chrome | Edge | Firefox | Safari | Opera |
More Examples
Use all getUTC methods to display the universal time:
if (i < 10) {i = "0" + i}
return i;
}
const d = new Date();
let h = addZero(d.getUTCHours());
let m = addZero(d.getUTCMinutes());
let s = addZero(d.getUTCSeconds());
let time = h + ":" + m + ":" + s;