Search:
Asterisk func iftime
Synopsis
Temporal Conditional: Returns the data following '?' if true else the data following ':'Description
IFTIME(<timespec>?[<true>][:<false>])Times before Asterisk 1.6.2 are only accurate down to the 2-minute interval. So 12:01 is treated the same as 12:00.
Starting with 1.6.2, times are accurate down to the minute.
Notes
- *CLI> show function IFTIME
- timespec is described here: Asterisk cmd GotoIfTime
Return value
Returns the resulting string.Example
exten => s,1,Set(foo=${IFTIME(*|mon|8-15|nov?goodtime:badtime)})See also
- Asterisk func STRFTIME
- Asterisk func STRPTIME
- Asterisk func if: IF function
- Asterisk cmd GotoIfTime: GotoIfTime
- Asterisk cmd GotoIf: GotoIf
- Asterisk cmd ExecIfTime: GotoIfTime
- Asterisk functions
- Asterisk variables
Created by: murf,Last modification on Mon 01 of Nov, 2010 [02:27 UTC] by JustRumours

Page Changes
