Skip to content

date

Syntax

date()

Description

Returns an integer value representing the current day in the simulation, equal to 10000 * year + 100 * month + day_of_month (i.e. YYYYMMDD) which allows for direct comparisons between dates.

Examples

If the current date in the model is Jan 1st 2021, then the agent will go to the Close state with the following transition rule:

if (date() == 20210101) then next (Close)

See Also