Skip to Content

How to calculate the time difference in Syclo

Hi All,

I want to calculate the total time taken in hours while working on a scenario ie .. diff ( End date time - Start date time)

Now I am a bit confused that the result which I am getting is in milliseconds or seconds .

Can anyone please clarify so that I can make the calculation to convert the time in hours .

Also , should I convert the date time in integer value and then do the calculation or direct difference between the date and time will be fine ?

Please advise.

Thanks

Neha

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 25, 2014 at 03:22 PM

    Hi Neha,

    The difference of two Date & Time will give result in seconds but in case of two Dates the result will be in days.

    Direct difference of Date & Time type properties will also work fine.

    Thanks,

    Sudhir.

    Add comment
    10|10000 characters needed characters exceeded