Answer the question
In order to leave comments, you need to log in
How to formulate Unix in Delphi?
I use function
UnixStartDate: TDateTime = 25569.0;
function DateTimeToUnix(ConvDate: TDateTime): Longint;
begin
Result := Round((ConvDate - UnixStartDate) * 86400);
end;
ShowMessage(inttostr(DateTimeToUnix(Now)));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question