.getHours()

Term side of the Card
Topic: Date
Unit title: .getHours()
Categories: Method
Explanation side of the Card

Explanation: The method that returns the hour (from 0 to 23) of a specified date. This value represents the hour of the day in a 24-hour format and is based on the local time of the system.

Browser compatibility:
  • The chrome browser supports this feature starting from version 1
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 1
  • The safari browser supports this feature starting from version 1
Availability: