IFTIME()

IFTIME(time-condition?trueVal:falseVal)

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)})
[Note]

Internal help for this application in Asterisk 1.4: 

  -= Info about function 'IFTIME' =- 

[Syntax]
IFTIME(<timespec>?[<true>][:<false>])

[Synopsis]
Temporal Conditional: Returns the data following '?' if true else the da
ta following ':'

[Description]
Not available

diff output to internal help in Asterisk 1.2: 

- none - 

See also. the section called “IF(), the section called “ExecIf(), the section called “GotoIf(), the section called “GotoIfTime()