Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Attention: The Community will be in read-only mode on 12/14/2017 from 12:00 am pacific to 11:30 am.

During this time you will only be able to see content. Other interactions such as posting, replying to questions, or marking content as helpful will be disabled for few hours.

We apologize for the inconvenience while we perform important updates to the Community.

New Member

UCCX 7.0.1- Holiday and Time check

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

Re: UCCX 7.0.1- Holiday and Time check

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 */

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
New Member

Re: UCCX 7.0.1- Holiday and Time check

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

New Member

Re: UCCX 7.0.1- Holiday and Time check

Hello

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

Rgds

Param

655
Views
0
Helpful
3
Replies
CreatePlease to create content