is_date_in_range()
Tests whether the simulation date falls in a given range of calendar dates.
Synopsis
is_date_in_range(date1, date2)
Description
True if the simulation date falls in the given range of dates, inclusive.
Parameters
date1
- A fixed string of the form
MMM-DDD
whereMMM
is a three letter abreviated for the name of a month, and
DD
is a two digit day-of the month.
- A fixed string of the form
date2
- A fixed string of the form
MMM-DDD
whereMMM
is a three letter abreviated for the name of a month, and
DD
is a two digit day-of the month.
- A fixed string of the form
Examples
For example, the following predicate is true if the current simulation date is between December 10 and January 1, including those dates:
if (is_date_in_range(Dec-10,Jan-01)) ...
Errors
A compilation area occurs if the date arguments cannot be parsed.