day_of_year

Returns the day of the year in the simulation.

Synopsis

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 year 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

today, date, day_of_month, day_of_week, month, year