1 Reply Latest reply on Mar 28, 2012 6:30 PM by 801120

    Current timestamp at different times & their difference

    923399
      Hi All,

      I am new to this forum.
      Currently I am working in IDM 8.0 project. I am stuck with one requirement.
      We need to generate the current time in hh:mm format at two different times with in a gap of 5 mins & calculate the difference between them in mins.
      I am able to get the current time with date using the below mentioned code.

      <invoke name='getTime'>
      <invoke name='getInstance' class='java.util.Calendar'/>
      </invoke>

      When I try to find the difference between 2 date timestamp after 5 mins, it comes out to be zero(0) always. May be it is calculating difference between dates not the time.
      Please guide me how to get only the current time & how to get difference between them in mins.