Article View: comp.unix.programmer
Article #3788Re: timezone macro for autoconf?
From: Paul Eggert
Date: Mon, 24 Apr 2000 00:00
Date: Mon, 24 Apr 2000 00:00
13 lines
1442 bytes
1442 bytes
Dan Kegel <dank@alumni.caltech.edu> writes: >PHP3 has a function gmmktime() which is the inverse of gmtime(), >i.e. it takes a struct tm * in GMT and returns a time_t. Unfortunately, it's buggy. It assumes that the sign of 'tm_gmtoff' is the same as that of 'timezone', which is incorrect. It may have other bugs but that's the first one I found by inspection. >Boy, do I wish Unix had that function. It's an action item for the next C standard. (Can you wait 10 years? :-)
Technical Details
Message-ID:
<8e2dfp$fdd$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>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: <8e2dfp$fdd$1@ruby.twinsun.com> X-Deja-AN: 615132435 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> X-Complaints-To: news@twinsun.com X-Trace: tattoo.twinsun.com 956610873 2152 192.54.239.31 (24 Apr 2000 21:14:33 GMT) Organization: Twin Sun Inc, El Segundo, CA, USA NNTP-Posting-Date: 24 Apr 2000 21:14:33 GMT Newsgroups: comp.unix.programmer,comp.os.linux.development.apps,gnu.utils.help