Returns a value depending on the time condition.
The
time-condition
follows the format
time
|dayofweek
|date
|month
;
each parameter may also be a range separated by
-
, or
contain the wildcard
*
. Time is given in 24 hour format
(
e.g. 08:00-18:00
), weekdays and month
names are three-letter English language abbreviations (
mon
,
tue
,
wed
,
thu
,
fri
,
sat
,
sun
and
jan
,
feb
,
mar
,
apr
,
may
,
jun
,
jul
,
aug
,
sep
,
oct
,
nov
,
dec
).
; Valid from 8 a.m. to 6 p.m., Mondays, 1st to the 15th of December:
exten => 123,1,Set(foo=${IFTIME(08:00-18:00|mon|1-15|dec?5:0)})
; Valid every Saturday and Sunday:
exten => 123,1,Set(foo=${IFTIME(*|sat-sun|*|*?5:0)})