Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: PFCCWA on August 01, 2022, 11:07:07 PM

Title: Using IRD to perform time checks
Post by: PFCCWA on August 01, 2022, 11:07:07 PM
hello

is there a way (in IRD) to check if the current time is within parameters extracted from an OPM transaction list?
so the transaction list lookup returns this value:

[b]Transaction List Returned- W//5/08:30-17:00[/b]

then using function blocks i have these vales (assigned to variables):

[b]Current Day-5 Current Time-16:41 Current Hour-16 Current Minute-41 Open Day-5 Open Hour-08 Opening Minutes-30 Closing Hour-17 Closing Minutes-00[/b]

i am using a segmentation block to perform several checks but always have a scenario that means the checks do not work.
what script can i use to make this work without having to use an expression script that is too long.

thanks,
Title: Re: Using IRD to perform time checks
Post by: terry on October 09, 2022, 11:50:00 PM
May be create 3 variables of type TIME and assign to them compared values which need to be string hours:minutes (TIME t1='16:41', TIME t2='8:30', TIME t3='17:00') then compare them as you need (t1>t2 & t1<t3)