cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1017
Views
0
Helpful
3
Replies

UCCX 7.0.1- Holiday and Time check

TouchbaseParam
Level 1
Level 1

Hello

Please give some ideas, how to find a holiday using specific day and time, please see below  my holiday list

______START_______     _______END________
    Month Day Hour Min     Month Day Hour Min     Description
    09    15  09   00      09    15  18   00
    10    07  09   00      10    07  18   00
    12    26  09   00      12    26  18   00

So far i have used xml to find a holiday, But this case need to consider between time interval. So i 'm expecting some idea... Please advice...

Thanks

Regards,

Param

3 Replies 3

Anthony Holloway
Cisco Employee
Cisco Employee

Try this example in a test script

Document hours = text[

     8:00 am

     1:00 pm

]

create xml doc(hours, hours)

Time start = get xml doc data(hours, "//start")

Time end = get xml doc data(hours, "//end")

if (t[now].after(start) && t[now].before(end)) {

     true

          /* we're between the start and end times */

     false

          /* we're outside of the start and end times */

Thanks lot for the info.

Our case is we have to verify day, starttime and endtime.

Each day may vary Starttime and endtime also.

Please advice...

Param

Hello

Managed to extended holiday check script and included starttime and end time also. Anyway thanks for the support.

Rgds

Param