🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #3081

Re: Converting LARGE_INTEGER to Date/Time

#3081
From: Ron Sawyer
Date: Thu, 28 Sep 2006 14:48
24 lines
1826 bytes
From that hint it turns out to be rather simple.  For those who may want to see the solution:

CSCDate::CSCDate(LARGE_INTEGER PassedLargeInt)
{
	FILETIME LclFileTime;
	LclFileTime.dwHighDateTime = PassedLargeInt.HighPart;
	LclFileTime.dwLowDateTime = PassedLargeInt.LowPart;
	FileTimeToSystemTime(&LclFileTime, &MyTime);
}

This gives me a reasonable date (although not the one I was expecting, I now have to go check my data. I was expecting 9-29-2006 and got back 11-9-2006. Again, for those looking for this solution, if I don't post back, assume that the data matches)

I had read an article that seemed to imply (or I misunderstood) that the two dates were different.  

Thanks for the help!

"Ed Mulroy" <dont_email_me@bitbuc.ket> wrote:
>Just a guess but I would expect the time to be expressed as a FILETIME 
>structure.  Both FILETIME and LARGE_INTEGER contain two 4 byte numbers.  Try 
>using a cast to FILETIME.
>
>.  Ed
>
Technical Details
Message-ID: <451be0be$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <451bcbac$1@newsgroups.borland.com> <451bce83@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,570873bcff9b512c
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ron Sawyer" <win8128@aol.com>
Sender: "Ron Sawyer" <win8128@aol.com>
Reply-To: "Ron Sawyer" <win8128@aol.com>
Subject: Re: Converting LARGE_INTEGER to Date/Time
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 20.137.18.52     
References: <451bcbac$1@newsgroups.borland.com> <451bce83@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <451be0be$1@newsgroups.borland.com>
Date: 28 Sep 2006 07:48:30 -0700
X-Trace: newsgroups.borland.com 1159454910 207.105.83.66 (28 Sep 2006 07:48:30 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail