Article View: news.software.nntp
Article #3505Re: more broken Date: headers
From: Henry Spencer
Date: Sun, 26 Mar 1995 23:19
Date: Sun, 26 Mar 1995 23:19
15 lines
1738 bytes
1738 bytes
In article <3kvin0$q5p@tools.near.net> barmar@nic.near.net (Barry Margolin) writes: >...Many systems permit you to >configure the current zone as an offset in seconds or minutes from GMT, and >the news software should take this setting as gospel. C News certainly does... although it turns out that *discovering* this offset is not simple to do in a portable way. There is too much variation in how the information is made available, if it's made available at all. What I ended up doing, in fact -- horrible but true -- is running the current time through both localtime() and gmtime(), and analyzing the outputs to compute the difference. While a bit grotesque, this has the virtue of being highly portable... -- There is a difference between | Henry Spencer cynicism and skepticism. | henry@zoo.toronto.edu
Technical Details
Message-ID:
<D62M3x.Bpr@zoo.toronto.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.b.mbox.zip!nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!xlink.net!howland.reston.ans.net!news.sprintlink.net!hookup!torn!sis!utzoo!henryReferences:
<Pnews.header.news.795981946.23493@sonyd1.broadcast.sony.com> <3kvin0$q5p@tools.near.net>Show Full Headers
Complete Article Headers
Message-ID: <D62M3x.Bpr@zoo.toronto.edu> Subject: Re: more broken Date: headers Date: Sun, 26 Mar 1995 23:19:08 GMT From: henry@zoo.toronto.edu (Henry Spencer) References: <Pnews.header.news.795981946.23493@sonyd1.broadcast.sony.com> <3kvin0$q5p@tools.near.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.b.mbox.zip!nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!xlink.net!howland.reston.ans.net!news.sprintlink.net!hookup!torn!sis!utzoo!henry Newsgroups: news.software.b,news.software.readers,news.software.nntp Distribution: inet Organization: U of Toronto Zoology Lines: 15