🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: File time problems, anyone have any ideas?

#16342
From: Bob Gonder
Date: Fri, 16 May 2003 23:03
29 lines
1813 bytes
"Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org> wrote:

>
>    -----------------
>    May 16, 2003 21:17 test.txt creation time
>    May 16, 2003 17:17 test.txt creation local time
>    -----------------
>A directory on the file showed this:
>    05/16/2003  05:08 PM    18,157 test.txt
>
>  static void ShowTime(const char *s, const FILETIME ft)
>      {
>      SYSTEMTIME st;
>
>      FileTimeToSystemTime(&ft, &st);
>      std::printf("%s %2d, %4d %2d:%02d %s\n",

Should those be %2hd and %4hd (words, not 16bit ints)? Dunno, maybe it
doesn't matter any more with 32bit pushes the norm these days....

>            month_name[st.wMonth - 1],
>            st.wDay,
>            st.wYear,
>            st.wHour,
>            st.wSecond,
	Uh.... wMinute?
>            s);
>      }
>
Technical Details
Message-ID: <g9racvc3j0vp8jsm2ttndnhtqj03mmaq6d@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ec55f4f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,bcd78c7fec4f306a
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-16 16:05:41 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: File time problems, anyone have any ideas?
Date: Fri, 16 May 2003 16:03:45 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <g9racvc3j0vp8jsm2ttndnhtqj03mmaq6d@4ax.com>
References: <3ec55f4f$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.31.165.117
X-Trace: newsgroups.borland.com 1053126217 67.31.165.117 (16 May 2003 16:03:37 -0700)
Lines: 30
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail