hour()

The hour() function returns the current hour as a value from 0 - 23.

Type: function

Returns:

  • {Number}:

    The current hour.