getHours()
The current hour set in the Date object. A Return Value of 0 = Midnight; 1 = 1am, and so on, up to 23 = 11.pm.
This function will return the current Hour set in the specified Date object.
Examples