🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #239996

--

#239996
From: Unknown
Date: Mon, 15 Mar 2010 02:50
22 lines
2217 bytes

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 );
Technical Details
Message-ID: <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.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feed.xsnews.nl!border-1.ams.xsnews.nl!news.glorb.com!news2.glorb.com!news-spur1.glorb.com!newsread.glorb.com!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>

Show Full Headers
Complete Article Headers
Message-ID: <JeffRelf.F-M.FM.j9@2010_Mar14.7.50pm>
Subject: --
Date: Mon, 15 Mar 2010 02:50:54 +0000
From: Unknown <anon@nohost.local>
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>
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.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feed.xsnews.nl!border-1.ams.xsnews.nl!news.glorb.com!news2.glorb.com!news-spur1.glorb.com!newsread.glorb.com!not-for-mail
Newsgroups: alt.free.newsservers,news.software.readers
Organization: JeffRelf.F-M.FM
Lines: 22
NNTP-Posting-Host: bXy9v2ldSW3yRbBQwcGv9Q.169.posting.glorb.com
Content-Type: Text/Plain; charset=UTF-8
X-Complaints-To: abuse@glorb.com
NNTP-Posting-Date: Mon, 15 Mar 2010 02:45:29 +0000 (UTC)
User-Agent: JeffRelf.F-M.FM/X.EXE
X-Notice: Scanned by Mr. Bill
X-Original-Bytes: 2093