mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 17:59:27 +02:00
Fix tepoch1 test
git-svn-id: trunk@47297 -
This commit is contained in:
parent
f296bf3f2d
commit
9b5d2322b6
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -16159,7 +16159,7 @@ tests/test/units/sysutils/twstralloc.pp svneol=native#text/plain
|
||||
tests/test/units/sysutils/twstrcmp.pp svneol=native#text/plain
|
||||
tests/test/units/types/ttbitconverter.pp svneol=native#text/pascal
|
||||
tests/test/units/ucomplex/tcsqr1.pp svneol=native#text/pascal
|
||||
tests/test/units/unixutil/tepoch1.pp svneol=native#text/pascal
|
||||
tests/test/units/unix/tepoch1.pp svneol=native#text/pascal
|
||||
tests/test/units/variants/tcustomvariant.pp svneol=native#text/plain
|
||||
tests/test/units/variants/tvararrayofintf.pp svneol=native#text/plain
|
||||
tests/test/units/variants/tw26370.pp svneol=native#text/plain
|
||||
|
@ -1,10 +1,10 @@
|
||||
{ %target=linux,freebsd,openbsd,aix,darwin,netbsd }
|
||||
uses
|
||||
unixutil;
|
||||
unix;
|
||||
var
|
||||
y,m,d,h,mn,s : word;
|
||||
begin
|
||||
EpochToLocal(15796372693,y,m,d,h,mn,s);
|
||||
EpochToUniversal(15796372693,y,m,d,h,mn,s);
|
||||
if (y<>2470) or (m<>7) or (d<>26) or (h<>9) or (mn<>18) or (s<>13) then
|
||||
halt(1);
|
||||
EpochToLocal(LocalToEpoch(2345,12,12,4,45,49),y,m,d,h,mn,s);
|
Loading…
Reference in New Issue
Block a user