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

Is there a way to modify a scripts range of hours to include smaller increments of time?

tdederscheck
Level 1
Level 1

I am using UCCX enhanced v. 9.02 and need to create a script that will check for logged in agents based on shift changes.  So I would need to look at seconds for the start and or end times.  The Time of Day will not allow me to adjust the minutes or seconds outside of the 15min increments.

1 Reply 1

Graham Old
Level 7
Level 7

I think the enhanced versions supports the T[now] item.


Run this as a test in your editor

If enhanced supports this you can  then work out your open and close time in minutes or seconds depending on the resolution you require.

Then its a simple test.

If TimeNow > OpenTime && TimeNow < CloseTime

    // we are open

else

   // We are closed

Please rate helpful posts.

Graham