JavaScript » Date » getHours

Syntax:
object.getHours( )

This method returns an integer between 0 and 23 that represents the hour (local time) for the specified date.