🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #239995

--

#239995
From: User
Date: Mon, 15 Mar 2010 03:16
33 lines
2426 bytes
On Sun, 14 Mar 2010 19:50:54 -0700 (Pacific Daylight Time),
JeffRelf.F-M.FM    @. wrote:

>?
>I discovered that, in Micro·Soft Visual C++, “_timezone” doesn't change
>when Daylight Savings time is in effect; so “_daylight” is required and
>the code I posted earlier ( to create a “Date:” line ) is now:
>  [ quoting http://jeffrelf.f-m.fm/X.CPP ]
>
>  wchar_t Date·Line[88];  unsigned __int64  Date_Now = time( 0 );
>  int Time·Zone·Not·Daylight·Secs = _timezone ;
>  const int  ·60×60 = 60 * 60 ;
>       ············
>  tm *TimeRec = localtime( ( time_t * ) &Date_Now );
>  wchar_t *pST = Date·Line ;
>  
>  pST += wcsftime( pST, 88, L"%a, %d %b %Y %H:%M:%S ", TimeRec );
>  
>  int Secs· = Time·Zone·Not·Daylight·Secs - daylight * ·60×60 ;
>  int Neg = Secs· > 0, Hr, Min ;
>  Min = abs( Secs· ) / 60, Hr = Min / 60, Min -= 60 * Hr ;
>  
>  pST += swprintf( pST, L"%c%04d ", Neg ? '-' : '+', 100 * Hr + Min );
>  //  There are countless time zone names; so no abbreviations.
>  wcsftime( pST, 88 - ( pST - Date·Line ), L"(%z)", TimeRec );

What's this fucken shit?

-- 
User
Technical Details
Message-ID: <8j9rp51nl80o8ek2qc02u1s51nfqf6hcj3@4ax.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!aioe.org!not-for-mail
References: <JeffRelf.F-M.FM.0O@2010_Feb11.6.58am> <xn0gqa0j92oqzta005@newszilla.xs4all.nl> <JeffRelf.F-M.FM.52@2010_Feb11.3.43pm> <JeffRelf.F-M.FM.vp@2010_Feb21.8.00am> <xn0gqo0982j61zm000@newszilla.xs4all.nl> <JeffRelf.F-M.FM.mC@2010_Feb21.1.55pm> <JeffRelf.F-M.FM.j9@2010_Mar14.7.50pm>

Show Full Headers
Complete Article Headers
Message-ID: <8j9rp51nl80o8ek2qc02u1s51nfqf6hcj3@4ax.com>
Subject: --
Date: Mon, 15 Mar 2010 11:16:52 +0800
From: User <user@invalid.invalid>
References: <JeffRelf.F-M.FM.0O@2010_Feb11.6.58am> <xn0gqa0j92oqzta005@newszilla.xs4all.nl> <JeffRelf.F-M.FM.52@2010_Feb11.3.43pm> <JeffRelf.F-M.FM.vp@2010_Feb21.8.00am> <xn0gqo0982j61zm000@newszilla.xs4all.nl> <JeffRelf.F-M.FM.mC@2010_Feb21.1.55pm> <JeffRelf.F-M.FM.j9@2010_Mar14.7.50pm>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!aioe.org!not-for-mail
Newsgroups: alt.free.newsservers,news.software.readers
Organization: Aioe.org NNTP Server
Lines: 33
NNTP-Posting-Host: MVm30pAifo0zD4Mf2fZCjQ.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Complaints-To: abuse@aioe.org
X-No-Archive: Yes
X-Notice: Filtered by postfilter v. 0.8.2
X-Newsreader: Forte Agent 3.3/32.846