JavaScript Reference/Javascript Methods/getUTCHours
"getUTCHours()" Example
<html>
<body>
<button onclick="var myDate = new Date();
alert(myDate.getUTCHours());">get UTC hours</button>
</body>
</html>
"getUTCHours()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |Date |
+----------------+--------------------------------------------------------------+
"getUTCHours()" Syntax, Parameters and Note
Note:
Returns the hour based on UTC time.
Return value: 0 to 23.
Syntax:
dateName.getUTCHours()