Extension to tzcode to support additional timezones

Christos Zoulas christos at zoulas.com
Wed Oct 27 16:39:22 UTC 2010


On Oct 27, 11:57am, lennox at cs.columbia.edu (lennox at cs.columbia.edu) wrote:
-- Subject: Re: Extension to tzcode to support additional timezones

| On Wednesday, October 27 2010, "Christos Zoulas" wrote to "tz at lecserver.nci.nih.gov, tz at elsie.nci.nih.gov, jhb at freebsd.org" saying:
| 
| > The second part of the discussion
| > is how to deal with tm_zone. Do we document that if you tzfree() you are
| > going to lose, or do we make it work using a string pool and thread locks?
| > Or something else?
| 
| Remember that this means not only tm_zone per se, but also strftime("%Z"),
| on systems which have tm_zone.

Indeed.

| (On systems without tm_zone, as far as I can tell there's no way to get
| strftime("%Z") correct for non-standard timezones, unless I'm overlooking
| something.)

We have strftime_z() that can deduce it from the timezone_t that is passed
in. Otherwise it defaults to the tzname etc.

christos



More information about the tz mailing list