SameDateTime Function |
Unit
QESBPCSDateTime
Declaration
Function SameDateTime(const DT1, DT2: TDateTime): Boolean;
Description
Date/Times are considered the same if they are less then 1 millisecond apart.
Parameters |
DT1 | First Date/Time to process. |
DT2 | Second Date/Time to process. |
Category
Date/Time ComparisonImplementation
function SameDateTime (const DT1, DT2: TDateTime): Boolean; begin Result := abs (DT1 - DT2) < OneDTMillisecond; End; |
|