Reference hour()

hour()

Returns the current hour as a number from 0–23.

Examples

Syntax

hour()

Parameters

Returns

Integer: current hour between 0 and 23.

Related References