08-30-2010 08:00 PM - edited 03-14-2019 06:24 AM
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
08-31-2010 09:05 AM
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 */
08-31-2010 06:12 PM
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
09-01-2010 03:24 AM
Hello
Managed to extended holiday check script and included starttime and end time also. Anyway thanks for the support.
Rgds
Param
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide