2 Replies Latest reply: Jun 3, 2013 7:29 AM by Kumar Natarajan RSS

    Compare two variable of time...

      Hello!

      I try to compare two variable  in the loading script. Current time must fall within a specified time interval

       

      My script:

      let vTimeStart = '05:00am';

      let vTimeEnd   = '05:30am';

      let curTime    = time#(time((num#(Left(now(1),4))/2400),'hh:mmtt'),'HH:MMTT');

       

      if time('$(curTime)','HH:MMTT') >= time('$(vTimeStart)', 'HH:MMTT') and (time('$(curTime)', 'HH:MMTT') <= time('$(vTimeStart)', 'HH:MMTT')) - error in this row

        //some script

      endif

       

      Thanks!