[DUG] Reading binary data as date/time from registry

Conor Boyd Conor.Boyd at trimble.co.nz
Fri May 14 13:00:02 NZST 2010


Yeah, that was vaguely on my mind too John, good suggestion.

C. 

-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of John Bird

I am pretty certain that 30/12/1899 is a unique start point for Delphi -

other systems (Unix and Windows) look to start at 1970 or 1980.   I am 
guessing as I haven't dealt with registry dates that you need to do
something similar to a file datestamp - FileDatetoDateTime and/or
FileTimeToSystemTime API

I saw some code examples at

http://www.efg2.com/Lab/Library/Delphi/DatesAndTimes/index.html

which appear to back this up  (about 1/4 way down the page).   Is the
date 
value likely to be a windows integer date/timestamp?



More information about the Delphi mailing list