Article View: borland.public.cppbuilder.nativeapi
Article #12235Re: FirstTimeWindowsInstalled.
From: Remy Lebeau (TeamB)
Date: Wed, 17 Dec 2003 01:01
Date: Wed, 17 Dec 2003 01:01
23 lines
1916 bytes
1916 bytes
"Safari" <Safari@alloymail.com> wrote in message
news:3fdfa688@newsgroups.borland.com...
> Can'nt i read this value integer?
> Example: FormatDateTime('yyyy/mm/dd', IntegerValue);
That is not the issue I was trying to explain to you. The Integer you read
from the Registry is *not* stored in the same way as the value that is
stored in a TDateTime.
The Integral portion of a TDateTime is the number of days that have passed
since December 30, 1899, and the fractional portion is the time of the day.
The value that is stored in the Registry, on the other hand, is the number
of seconds that have passed since January 1, 1970, 12:00 AM.
They are *not* the same thing! So if you want to use the Registry value as
a TDateTime, you must convert one format to the other. That is what
FileTimeToDateTime() is doing for you in this situation.
Gambit
Technical Details
Message-ID:
<3fdfa9b2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fdc4d66@newsgroups.borland.com> <3fdcddd4$1@newsgroups.borland.com> <3fdf87d6@newsgroups.borland.com> <3fdfa595$1@newsgroups.borland.com> <3fdfa688@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,4bc4a0b3c60109c0 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-16 17:09:40 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fdc4d66@newsgroups.borland.com> <3fdcddd4$1@newsgroups.borland.com> <3fdf87d6@newsgroups.borland.com> <3fdfa595$1@newsgroups.borland.com> <3fdfa688@newsgroups.borland.com> Subject: Re: FirstTimeWindowsInstalled. Date: Tue, 16 Dec 2003 17:01:07 -0800 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.23.78.224 Message-ID: <3fdfa9b2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1071622578 67.23.78.224 (16 Dec 2003 16:56:18 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail