Timediff function

What would you like to see in CSPro?
AriSilva
Posts: 246
Joined: July 22nd, 2016, 3:55 pm

Timediff function

Postby AriSilva » April 10th, 2019, 8:55 am

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: 1904
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Timediff function

Postby josh » April 10th, 2019, 9:21 am

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: 246
Joined: July 22nd, 2016, 3:55 pm

Re: Timediff function

Postby AriSilva » April 11th, 2019, 8:36 am

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


Return to “Feature Requests”