Timediff function

What would you like to see in CSPro?
Forum rules
New release: CSPro 8.0
Post Reply
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Timediff function

Post 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
Best
Ari
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Timediff function

Post 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
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Re: Timediff function

Post by AriSilva »

Thanks, Josh, it suits me.
II would suggest, then, to write an example of that in the timestamp help.
Best
Ari
Best
Ari
Post Reply