Date.getUTCHours

getUTCHours – Get the hour, according to universal time (0–23).

Description

Date.getUTCHours()

Return values

Integer

Examples

Example #1 – getUTCHours example
console.log(new Date().getUTCHours()); // Gets the current hour, according to UTC.

External references