08-17-2007 12:47 PM - last edited on 03-25-2019 07:09 PM by ciscomoderator
Has anyone ever seen a script that can get time from an XML doc and compare it to the current time? Similar to the "Holiday XML".
I have a script where I want to let the user set the Open and Closed time for the menu. I have a custom VB app the users set the menu times and the app creates an XML with all the Open and closed times similar to the following.
<MondayOpen>7:00:00</MondayOpen>
<MondayClosed>18:00:00:</MondayClosed>
......and so on
I know it can be done the hard part for me is converting the XML time "string" into an integer that can be compared with > and <.
thanks,
08-23-2007 11:25 AM
Try:
Cisco IPCC Express Support Checklist :
http://www.cisco.com/en/US/products/sw/custcosw/ps1846/products_tech_note09186a00801bf090.shtml
Troubleshooting CRS Guide :
11-20-2007 08:44 PM
I have one that myself and a colleague put together.
Two notes.
1. IPCC seems to work with time in military format. Because of this, you can do a text > or < and it will work fine. The 7:00:00 in your example should actually be 07:00:00. Set the time in a text variable when your script is called. Then do you lt/gt and your all set.
2. If using vb, why go through the trouble of making IPCC figure out if you are open/closed. You can do this in vb and then all you feed IPCC is an Open or Closed status.
11-21-2007 05:50 AM
Thanks for your post.
I actually did exactly what you are referring to in 1. and it worked great.
The only reason I use IPCC to determine open and closed is if the Application server running VB for any reason was offline the script would never open. Since I don't control the application servers only the IPCC environment I want to make that system as stable as possible.
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