age_in_days¶
Syntax¶
Description¶
Returns the age of the calling agent in days.
This action returns the integer number of days since the calling agent's date of birth.
This calcuation is exact for agents born during the simulation period.
For agents with dates of birth prior to the simulation start_date, the
calculation assumes 365.25 days per year; that is, it may not be 100%
accurate due to the presence of leap days.
Examples¶
The following would assign the age of the calling agent in weeks to some
numeric variable my_age_in_weeks.