07-13-2018, 05:24 PM
I wonder whether there exists a function to find the difference between two time-stamps. At present I use :
Macro temp10
I have tried also TimeSpanGetPartsTotal(long'xde long'ddays)
but I failed to convert long'ddays to a double variable.
Any advice is much appreciated.
Macro temp10
DateTime xde xsa xan
xan.FromStr("13-07-08 12:00:10")
xsa.FromStr("10-07-08")
xde=xan -xsa
double ddiff=xde
ddiff=ddiff/10000000/60/60/24 ;; days
out F"Decay in days: {ddiff%%12.5f}"
I have tried also TimeSpanGetPartsTotal(long'xde long'ddays)
but I failed to convert long'ddays to a double variable.
Any advice is much appreciated.