GetRoundedDatetime

Round down a datetime

Syntax

LOADLIB "wh::datetime.whlib";

DATETIME FUNCTION GetRoundedDatetime(DATETIME dt, INTEGER precision)

Parameters

DATETIME dt

Datetime to round down

INTEGER precision

Precision in milliseconds (eg, 1000 to round down to seconds, 86400*1000 to round down to a day)

Return value

DATETIME

Rounded datetime