day_of_week
Returns the day of the week of the current day in a simulation.
Synopsis
day_of_week
Description
Returns an integer representing the day of the week in a simulation, coded: Sun= 0
, Mon= 1
, … , Sat= 6
.
Examples
The transition statement below sends agents to the Closed
state if the day of the week is 0
(Sunday):
if (day_of_week == 0) then next(Closed)