Article View: borland.public.cppbuilder.nativeapi
Article #16343Re: File time problems, anyone have any ideas?
From: Ed Mulroy [TeamB]
Date: Sat, 17 May 2003 00:39
Date: Sat, 17 May 2003 00:39
36 lines
2070 bytes
2070 bytes
> Uh.... wMinute?
You found it Bob - thanks!
Sometimes when you look at things you can do 2+2=5 all day. Thanks to you,
I'm reset to 2+2=4 ;-)
> Should those be %2hd and %4hd (words, not 16bit ints)?
It doesn't matter. The d is 32 bits and since the numbers are dates and
times, none of them approaches setting the sign bit.
. Ed
> Bob Gonder wrote in message
> news:g9racvc3j0vp8jsm2ttndnhtqj03mmaq6d@4ax.com...
>
> > 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:
<3ec584e9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ec55f4f$1@newsgroups.borland.com> <g9racvc3j0vp8jsm2ttndnhtqj03mmaq6d@4ax.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 17:46:48 PST From: "Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ec55f4f$1@newsgroups.borland.com> <g9racvc3j0vp8jsm2ttndnhtqj03mmaq6d@4ax.com> Subject: Re: File time problems, anyone have any ideas? Date: Fri, 16 May 2003 20:39:42 -0400 Lines: 38 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.1106 NNTP-Posting-Host: 24.74.175.102 Message-ID: <3ec584e9$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1053132009 24.74.175.102 (16 May 2003 17:40:09 -0700) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail