Skip to content

year

Syntax

year()

Description

Returns the 4-digit current year of the simulation as an integer value.

Examples

If the current simulation day is January 1st, 2021, then

x = year()

assigns 2021 to some numeric variable x.

See Also