Article View: comp.unix.programmer
Article #3789Re: timezone macro for autoconf?
From: Paul Eggert
Date: Mon, 24 Apr 2000 00:00
Date: Mon, 24 Apr 2000 00:00
21 lines
2021 bytes
2021 bytes
Russ Allbery <rra@stanford.edu> writes: >ISO C9x, which I was just reading earlier today, actually specifies a new >structure, struct tmx, struct tmx was in early drafts of ISO C9x, but the spec had a lot of problems that were uncovered during review, and struct tmx was removed before C99 became official. struct tmx shouldn't be used in real code. >the code that you included uses timezone if tm_gmtoff isn't available. >INN falls back on calling localtime and gmtime and comparing them. INN's method is more reliable. The problem with the 'timezone' method is that it assumes that standard time has a fixed UTC offset. This assumption is incorrect. E.g. Argentina changed their standard-time UTC offset last month. Perhaps the PHP 'timezone' code with could be fixed to work in most cases, but it's certainly not guaranteed to work and I would suggest that it remove all references to 'timezone'. I should point out that I helped to write and debug that part of the INN code, so I'm not unbiased here.
Technical Details
Message-ID:
<8e2dtj$ff6$1@ruby.twinsun.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<38FBB4DB.DE12E1C4@alumni.caltech.edu> <ylog78chos.fsf@windlord.stanford.edu> <8di5uf$8p0$1@ruby.twinsun.com> <ylaeiryr7f.fsf@windlord.stanford.edu> <3903E142.FBD4E5E8@alumni.caltech.edu> <ylitx8qbiy.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c696,8ce1c34c9f5a1eaa X-Google-Attributes: gid10c696,public X-Google-Thread: 109f73,8ce1c34c9f5a1eaa X-Google-Attributes: gid109f73,public X-Google-Thread: fc89c,8ce1c34c9f5a1eaa X-Google-Attributes: gidfc89c,public From: eggert@twinsun.com (Paul Eggert) Subject: Re: timezone macro for autoconf? Date: 2000/04/24 Message-ID: <8e2dtj$ff6$1@ruby.twinsun.com> X-Deja-AN: 615153621 References: <38FBB4DB.DE12E1C4@alumni.caltech.edu> <ylog78chos.fsf@windlord.stanford.edu> <8di5uf$8p0$1@ruby.twinsun.com> <ylaeiryr7f.fsf@windlord.stanford.edu> <3903E142.FBD4E5E8@alumni.caltech.edu> <ylitx8qbiy.fsf@windlord.stanford.edu> X-Complaints-To: news@twinsun.com X-Trace: tattoo.twinsun.com 956611315 2293 192.54.239.31 (24 Apr 2000 21:21:55 GMT) Organization: Twin Sun Inc, El Segundo, CA, USA NNTP-Posting-Date: 24 Apr 2000 21:21:55 GMT Newsgroups: comp.unix.programmer,comp.os.linux.development.apps,gnu.utils.help