GetMsecsDifference (open)

Get difference between two timestamps in milliseconds

Syntax

LOADLIB "wh::datetime.whlib";

INTEGER FUNCTION GetMsecsDifference(DATETIME fromdate, DATETIME todate)

Parameters

DATETIME fromdate

Source date

DATETIME todate

Destination date (the 'later' date, if you want a positive result)

Return value

INTEGER

The 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.