Skip to content

day_of_year

Syntax

day_of_year()

Description

Returns an integer representing the day of the year in the simulation, with Jan-01 having the value 1 and Dec-31 having the value 365 in non-leap years and 366 in leap years.

Examples

The transition statement below sends agents to the Closed state if the current simulation day is January 1st:

if (day_of_year() == 1) then next(Closed)

See Also