GetMsecsDifference (open)
Get difference between two timestamps in milliseconds
Syntax
LOADLIB "wh::datetime.whlib";
INTEGER FUNCTION GetMsecsDifference(DATETIME fromdate, DATETIME todate)Parameters
DATETIME fromdateSource date
DATETIME todateDestination date (the 'later' date, if you want a positive result)
Return value
INTEGERThe difference. If the two dates differ by on day or more, this script returns a maximum of 1 days difference
Description
This function returns the difference between two timestamps in milliseconds.