There are Time and Date functions to allow
making decisions wrt date&time. For example DateNum(), TimeNum(),
Now(), Minutes(), Seconds(), etc.
To know tomorrow whether a condition was true
during a previous run you can use StaticVariables, see StaticVarSet()
and StaticVarGet(). These variables will retain their values regardles
of whether you shut down and power up your compurter. For
example to know that you started a new day you could use NewDay =
DateNum() != ref(DateNum(),01);
There are also ParamDate() and ParamTime()
function that allow you to manually change the Date/Time parameters for
your conditions.
best regards,
herman