mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 02:59:28 +02:00
* fixed CompareDate function. Only dates are compared now, ignoring time of day.
git-svn-id: trunk@13949 -
This commit is contained in:
parent
dd72603442
commit
d4d3227e77
@ -1857,7 +1857,7 @@ Function CompareDate(const A, B: TDateTime): TValueRelationship;
|
||||
begin
|
||||
If SameDate(A,B) then
|
||||
Result:=EQualsValue
|
||||
else if A<B then
|
||||
else if Trunc(A)<Trunc(B) then
|
||||
Result:=LessThanValue
|
||||
else
|
||||
Result:=GreaterThanValue;
|
||||
|
Loading…
Reference in New Issue
Block a user