🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3786

Re: timezone macro for autoconf?

#3786
From: Russ Allbery
Date: Sun, 23 Apr 2000 00:00
20 lines
1781 bytes
In gnu.utils.help, Dan Kegel <dank@alumni.caltech.edu> writes:

> Here's the code PHP3 uses, by the way.  It relies on mktime() setting
> the tm_gmtoff field in the structure the argument points to!  Note that
> that behavior doesn't seem to be specified in SUS, e.g.
> http://www.opengroup.org/onlinepubs/007908799/xsh/mktime.html

ISO C9x, which I was just reading earlier today, actually specifies a new
structure, struct tmx, which has additional standardized fields containing
the timezone information and a whole new set of functions for manipulating
it.

> I take it from the remarks above that INN does it this way if tm_gmtoff
> is present?

No, the code that you included uses timezone if tm_gmtoff isn't available.
INN falls back on calling localtime and gmtime and comparing them.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
Technical Details
Message-ID: <ylitx8qbiy.fsf@windlord.stanford.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
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>

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: Russ Allbery <rra@stanford.edu>
Subject: Re: timezone macro for autoconf?
Date: 2000/04/23
Message-ID: <ylitx8qbiy.fsf@windlord.stanford.edu>
X-Deja-AN: 614879171
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>
Content-Type: text/plain; charset=us-ascii
Organization: The Eyrie
Mime-Version: 1.0
User-Agent: Gnus/5.0802 (Gnus v5.8.2) XEmacs/21.1 (Biscayne)
Newsgroups: comp.unix.programmer,comp.os.linux.development.apps,gnu.utils.help