English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
getUTCMinutes()Returns the minute number of a specific date object based on UTC (0-59)
getUTCMinutes()The returned value is an integer between59The number between
World Standard Time (UTC) is the time set by the world time standard.
date.getUTCMinutes()
var d = new Date(); d.getUTCMinutes();Test and see‹/›
All browsers fully support the getUTCMinutes() method:
Method | |||||
getUTCMinutes() | is | is | is | is | is |
Return value: | from 0 to59the integer between |
---|---|
JavaScript version: | ECMAScript 1 |
Return the minutes of a specific date and time:
var d = new Date(#39;August 20, 1999 23:15:30:420'); d.getUTCMinutes();Test and see‹/›
Display time using the getUTCHours(), getUTCMinutes(), getUTCSeconds(), and getUTCMilliseconds() methods:
setInterval(function () { var d = new Date(); var x = document.getElementById('result'); x.innerHTML = d.getUTCHours() + :" + d.getUTCMinutes() + :" + d.getUTCSeconds() + ':' + d.getUTCMilliseconds(); }, 1);Test and see‹/›