Article View: borland.public.cppbuilder.nativeapi
Article #4938Re: time_t to TDateTime
From: tinyabs
Date: Wed, 12 Oct 2005 16:09
Date: Wed, 12 Oct 2005 16:09
8 lines
1266 bytes
1266 bytes
I did some findings and produced this code.
time_t is the number of seconds passed a fixed date/time.
TDateTime ToDateTime(time_t time)
{
TDateTime dt = IncSecond(EncodeDateTime(1970, 1, 1, 0, 0, 0, 0), time);
return dt;
}
Technical Details
Message-ID:
<434d34a5@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<434cfde3$1@newsgroups.borland.com> <434d20f1@newsgroups.borland.com> <434d2493@newsgroups.borland.com> <434d2b55@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,abdfe71df549986f X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "tinyabs" <nospam@me.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <434cfde3$1@newsgroups.borland.com> <434d20f1@newsgroups.borland.com> <434d2493@newsgroups.borland.com> <434d2b55@newsgroups.borland.com> Subject: Re: time_t to TDateTime Date: Thu, 13 Oct 2005 00:09:03 +0800 Lines: 10 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 222.165.0.234 Message-ID: <434d34a5@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1129133221 222.165.0.234 (12 Oct 2005 09:07:01 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail