From: "Finn Tolderlund" Subject: Re: Unix DateTime To Delphi DateTime? Date: 09 Mar 1999 00:00:00 GMT Message-ID: <7c3ml6$k6n$1@news101.telia.com> References: <36E4FB4C.E49B7BA3@nato.usmc.net> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 X-Complaints-To: abuse@telia.dk X-Trace: news101.telia.com 921001446 20695 194.255.244.185 (9 Mar 1999 17:44:06 GMT) Organization: Customer at Telia Danmark (http://www.telia.dk) NNTP-Posting-Date: 9 Mar 1999 17:44:06 GMT Newsgroups: borland.public.delphi.winapi It's easy to make one. function UnixDateTimeToDelphiDateTime(UnixDateTime: LongInt): TDateTime; begin Result := EncodeDate(1970, 1, 1) + (UnixDateTime / 86400); {86400=No. of secs. per day} end; Dolf van Mil skrev i meddelelsen <36E4FB4C.E49B7BA3@nato.usmc.net>... >is there a function in Delphi or WinApi to convert a Unix DateTimeStamp >to a DelphiDateTime? Unix uses a integer containing the seconds since >1-1-1970.