🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

DateTime conversions

#10093
From: nicolasr
Date: Thu, 13 May 2004 23:23
17 lines
1355 bytes
Hi,

I'm having some problems with converting timestamps.
My application reads out entries from the NTFS change
journal. All journal records have a LARGE_INTEGER
UTC time stamp for the change that occurred in the file system.

How do I convert this time stamp to TDateTime keeping it UTC?

Which APIs should I use to convert from a given TDateTime
in local time to an UTC LARGE_INTEGER and vice versa.
(including summer time differences)

The OSs in use are Win2000/XP.

thanks for any help,
Nick
Technical Details
Message-ID: <40a40367$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,ccf61f85df823a6f,start
X-Google-Attributes: gid10cc67,public
From: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: DateTime conversions
Date: Fri, 14 May 2004 01:23:16 +0200
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 80.133.164.16
Message-ID: <40a40367$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1084490599 80.133.164.16 (13 May 2004 16:23:19 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail