Skip to content

hour

Syntax

hour()

Description

The integer of the current hour of the simulation day in 24-hour format, with a range of 0-23.

Examples

If the simulation is at the first hour of a given day, then

x = hour()

assigns 0 to a numeric variable x.

See Also