×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

Can you to Time of Day in 5 minute increments?

Answered Question
Aug 23rd, 2012
User Badges:

When I use Time of Day in my UCCX script, the options for the beginning/ending of time periods is in 15-minute increments.  I need to be able to open a queue at 7:55 AM and close it at 7:05 PM.  Is there a way to do this?

Correct Answer by Gabriel Saavedra about 4 years 12 months ago

Hi you can't do that with the time of day step. You will need to add more logic here, with If statements. You can take the current time of the uccx server and then convert it to int variables and compare that to your "int" business hour variables (I used this before and works fine) also you can compare time type variables, here is one great post where Jonathan Schulenberg and Anthony Holloway give some tips.


https://supportforums.cisco.com/message/3441179#3441179


Other thread related that could help you:



https://supportforums.cisco.com/message/3177834#3177834



Gabriel.

Please rate helpful posts

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Correct Answer
Gabriel Saavedra Thu, 08/23/2012 - 21:13
User Badges:
  • Silver, 250 points or more

Hi you can't do that with the time of day step. You will need to add more logic here, with If statements. You can take the current time of the uccx server and then convert it to int variables and compare that to your "int" business hour variables (I used this before and works fine) also you can compare time type variables, here is one great post where Jonathan Schulenberg and Anthony Holloway give some tips.


https://supportforums.cisco.com/message/3441179#3441179


Other thread related that could help you:



https://supportforums.cisco.com/message/3177834#3177834



Gabriel.

Please rate helpful posts

kylebrogers Thu, 09/06/2012 - 13:13
User Badges:

In case anyone else runs into this, I used the TIME variable-type. 

I created 3 variables: currentTime, queueOpenTIme, queueCloseTime. 

All were TIME variables in the T[HH:MM:SS AM] format. 

T[now] pulls the current time.



My IF statement was set up as:


currentTime >= queueOpenTime && currentTime <= queueCloseTime



Thanks for the heads up on the Time Variable.

Actions

This Discussion