Time Settings

Discussion in 'Call Flow Designer' started by TWC-3cx, Aug 23, 2017.

Thread Status:
Not open for further replies.
  1. TWC-3cx

    Joined:
    Aug 28, 2014
    Messages:
    13
    Likes Received:
    0
    Greetings

    I just started Working on Call Flow Designer for the 1st time today.

    So I am reading through
    https://www.3cx.com/docs/cfd-routing-calls-time-day/

    and all the Time Examples are exactly on the hour. 9 12 and 18.

    Would Quarter past and Half past the hour be 9:15 or 12:30 ?

    Thanks
     
  2. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,373
    Likes Received:
    110
    Hi @TWC-3cx,

    No, those are C# expressions, so you need to evaluate the Minute property of the DateTime object. For example, if you want to check if the time is between 9:15 and 12:30 you need the following expression:
    (DateTime.Now.Hour == 9 && DateTime.Now.Minute >= 15) || (DateTime.Now.Hour > 9 && DateTime.Now.Hour < 12) || (DateTime.Now.Hour == 12 && DateTime.Now.Minute < 30)

    Kind regards.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. TWC-3cx

    Joined:
    Aug 28, 2014
    Messages:
    13
    Likes Received:
    0
    Hi @edossantos

    Thanks for that.
    This i think is a tad more complex than i was led to believe.

    More reading for me.
     
  4. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,373
    Likes Received:
    110
    Yes, we understand that many users find this a bit difficult, and because of that we'll be providing a new Date and time routing component in the next release. No ETA yet, but we're already working on that. Stay tuned!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Thread Status:
Not open for further replies.