Page 1 of 1

Timediff function

Posted: April 10th, 2019, 8:55 am
by AriSilva
Hi folks,
There is a datediff, which is very useful.
Why not a Timediff?
I know it would depend on the systime format, etc, but it happens that every time I need to have a time lapse I have to use a function of my own, which might not be right.
Best
Ari

Re: Timediff function

Posted: April 10th, 2019, 9:21 am
by josh
You would be better off using timestamp() to calculate time differences. Timestamp() returns a time in seconds so you can subtract one timestamp from another to get an elapsed time in seconds. http://www.csprousers.org/help/CSPro/ti ... ction.html

Re: Timediff function

Posted: April 11th, 2019, 8:36 am
by AriSilva
Thanks, Josh, it suits me.
II would suggest, then, to write an example of that in the timestamp help.
Best
Ari