Hi Guys Many thanks for your help. I am now much 'wiser' about date.time issues. I have not had much to with date time stuff. I have now got it all working.
Many thanks again kind regards Neil ----- Original Message ----- From: "Tony Foale" <[email protected]> To: "Moderated List for the Discussion of Delphi Programming excludingDatabase-related topics" <[email protected]> Date: Fri, 16 Nov 2012 15:16:00 +0100 Subject: Re: Help with dateTime problem > On 15 November 2012 17:26, Nesler, Thomas J <[email protected]> wrote: > > > function UNIXTimeToDateTimeFAST(UnixTime: LongWord): TDateTime; > > begin > > Result := (UnixTime / 86400) + 25569; > > end; > > > > I wish I knew why the function added 25569 to the number, but I don't. > > > > Well, 25569 is close to the number of days between 1970 and 1904 which a > quick mental calculation came out close to 24100 dependent on when leap > years occurred. > > Regards > > Tony Foale > > > > [email protected] > http://www.tonyfoale.com > http://picasaweb.google.com/tonyfoale > https://www.facebook.com/tony.foale.5 > https://www.youtube.com/user/MotoChassis > _______________________________________________ > Delphi mailing list > [email protected] > http://lists.elists.org/cgi-bin/mailman/listinfo/delphi > > _______________________________________________ Delphi mailing list [email protected] http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

