[asterisk-users] GotoIftime

John Millican jmillican at sentinelcommunications.com
Wed Jul 30 16:19:52 CDT 2008


Ira wrote:
> At 01:36 PM 7/30/2008, you wrote:
>> Nhadie wrote:
>>> Hi
>>>
>>> How cn i define in GotoIfTime from day 1 extending to day 2?
>>>
>>> e.g July 30 2200 up to July 31 0200
>>>
>>> I'm thinking like this: GotoIfTime(22:00-02:00|*|30-31|jul?test,s,1)
>>>
>> GotoIfTime(22:00-23:59|*|30-31|jul?test,s,1)
>> GotoIfTime(00:00-02:00|*|30-31|jul?test,s,1)
>>
>> Doug
> 
> Does that leave a 1 minute or 1 second hole? 
> 
> 
Should be neither.  Since the time frame allowed is in minutes there is
no time between 23:59 and 00:00  Since it has to be one or the other.
Now, if I "assume" that the time is converted from time_t to 24 hour
format using something such as localtime or gmtime the result of this
should be using only tm_min and tm_hour which would also mean there is
no hole.
THESE ARE ALL ASSUMPTIONS, I have not checked the code.

-- 
JohnM




More information about the asterisk-users mailing list