Article View: news.software.readers
Article #239762--
From: Unknown
Date: Sun, 21 Feb 2010 21:55
Date: Sun, 21 Feb 2010 21:55
24 lines
2104 bytes
2104 bytes
Thanks Pieter, I was looking from something simpler, a single call,
I wondered if there wasn't a standard call for such a common format.
By the way, I allow 54 characters for
the TimeZone name ( e.g. “Pacific Standard Time” ).
In case that isn't enough, I added a “ 88 - ( pST - Date·Line ) ” limit
to the code I posted earlier: [ From http://jeffrelf.f-m.fm/X.CPP ]
wchar_t Date·Line[88]; unsigned __int64 Date_Now = time( 0 );
············
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 Min = _timezone, Neg = Min > 0, Hr ;
Min = abs( Min ) / 60, Hr = Min / 60, Min -= 60 * Hr ;
pST += Str( pST, L"%c%04d ", Neg ? '-' : '+', 100 * Hr + Min );
// There are hundreds of time zone names, no abbreviations.
wcsftime( pST, 88 - ( pST - Date·Line ), L"(%z)", TimeRec );
^^^^^^^^^^^^^^^^^^^^^^^^
Technical Details
Message-ID:
<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.ams.giganews.com!nntp.giganews.com!nf02.dk.telia.net!starscream.dk.telia.net!news.glorb.com!news2.glorb.com!news-spur1.glorb.com!newsread.glorb.com!not-for-mailReferences:
<7tieq6FovvU1@mid.individual.net> <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>Show Full Headers
Complete Article Headers
Message-ID: <JeffRelf.F-M.FM.mC@2010_Feb21.1.55pm> Subject: -- Date: Sun, 21 Feb 2010 21:55:05 +0000 From: Unknown <anon@nohost.local> References: <7tieq6FovvU1@mid.individual.net> <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> 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!nf02.dk.telia.net!starscream.dk.telia.net!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: 24 NNTP-Posting-Host: YM1KMrA8PPIU0lsfPoBg/Q.132.posting.glorb.com Content-Type: Text/Plain; charset=UTF-8 X-Complaints-To: abuse@glorb.com NNTP-Posting-Date: Sun, 21 Feb 2010 21:50:16 +0000 (UTC) User-Agent: JeffRelf.F-M.FM/X.EXE X-Notice: Scanned by Mr. Bill