mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 02:19:27 +02:00
parent
a25ebbba3e
commit
5786182188
@ -2148,8 +2148,9 @@ end;
|
||||
---------------------------------------------------------------------}
|
||||
|
||||
Function DateTimeToUnix(const AValue: TDateTime): Int64;
|
||||
|
||||
begin
|
||||
Result:=Trunc(DateTimeDiff(AValue,UnixEpoch)*SecsPerDay);
|
||||
Result:=Round(DateTimeDiff(RecodeMillisecond(AValue,0),UnixEpoch)*SecsPerDay);
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user