cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
677
Views
0
Helpful
1
Replies

UCCX Storing Time Variables & Using Military Time

knelson23
Level 1
Level 1

I have a script that we use to force close the Q for Meetings, Weather, etc.  It is a simple True, False written to an XML file.  I now need to take it a step further with the option of entering a Start Time and End Time.  Issue I am running into is with Time variable.  I want to use the following IF statement:  T[now] > TStart and T[now] < TEnd.  The trick I need help with - I want to have time entered in Military Time from the keypad.  I store/upload that value to the XML file for reference.  I then in the Q script pull those values into the script for comparison.  How do I take String values from the XML and make them Time variables that can be compared in my IF statement.  Also - how to use Military Time for this comparison?

 

Note:  I did read a lot of previous post and some reference guides but the examples shown/used for some reason error for me when entering them in the script.  Example:  set RStart = TStart.getTime()

1 Accepted Solution
1 Reply 1