mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 15:47:53 +02:00
+ simple test for Dateutils.DateOf
This commit is contained in:
parent
3fbf05ec89
commit
f671db3fa6
12
packages/rtl-objpas/tests/tdateof.pp
Normal file
12
packages/rtl-objpas/tests/tdateof.pp
Normal file
@ -0,0 +1,12 @@
|
||||
uses
|
||||
Sysutils,DateUtils;
|
||||
var
|
||||
d1,d2 : TDateTime;
|
||||
begin
|
||||
d1:=EncodeDateDay(2023,1);
|
||||
d2:=EncodeDate(2023,1,1);
|
||||
d1:=d1+0.6;
|
||||
d2:=d2+0.3;
|
||||
if DateOf(d1)<>DateOf(d2) then
|
||||
halt(1);
|
||||
end.
|
Loading…
Reference in New Issue
Block a user