The getUTCHours() method returns the hour portion of the date expressed, converted to universal time and expressed as an integer from 0 (12:00 a.m. midnight) to 23 (11:00 p.m.).
<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
dateVar = new Date();
alert(dateVar.getUTCHours());
// -->
</script>
</head>
<body>
</body>
</html>
12.18.getUTCHours |
| 12.18.1. | Date.getUTCHours() |