[Asterisk-Users] Playing with time ranges...

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Sun May 2 09:04:27 MST 2004


On Saturday 01 May 2004 18:00, Hermann Wecke wrote:
> On Fri, 30 Apr 2004, Mark Elkins wrote:
> > Looking at pbx.c - I'm not sure if I should change the end time
> > (ie midnight) to either 23:59 -or- 00:00.
>
> it is 23:59
>
> > 23:59 will work - but what happens to calls then between 23:59
> > and midnight?
>
> 23:59'59" is still 23:59 mainly because you are not handling
> "seconds", pnlu hours and minutes.
>
> And, actually, 24:00 does not exist...
>
> This about this recipe:
>
> include => night_menu|17:00-23:58|Mon-Thu|*|*
>
> in this example, you are starting at 17 hours, 0 minutes 0 seconds
> and ending at 23 hours, 58 minutes, 59 seconds..

Actually, you aren't.  If you take a look at the underlying logic,
the minimum increment is 2 minutes, which means that 23:58
is treated the same as 23:59.

-- 
Tilghman



More information about the asterisk-users mailing list