mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: musl 0.9.8 released
Date: Mon, 3 Dec 2012 12:30:19 -0500	[thread overview]
Message-ID: <20121203173019.GI20323@brightrain.aerifal.cx> (raw)
In-Reply-To: <20121203131117.GC32305@port70.net>

On Mon, Dec 03, 2012 at 02:11:17PM +0100, Szabolcs Nagy wrote:
> i just remembered that there was a request about tzdata support
> with proper zoneinfo parsing instead of just posix TZ

Yes. I'd forgotten about that. It doesn't necessarily need to be on
the agenda for the next release cycle, but it definitely needs to be
in the 1.0 wishlist. I think I'll post a revised 1.0 wishlist with
possible time frames for each item..

As for zoneinfo support, what it basically amounts to is writing a
single function that, given a time in seconds since the epoch, runs
over the mmapped zoneinfo binary format file and returns the timezone
offset at that moment. It might also need the ability to determine
separately the DST and non-DST offsets for the year that time falls in
(for use with mktime) -- this could be done via an extra argument to
the function, like the tm_isdst field, with 3 possible values -- and
the ability to get the DST and non-DST names of the timezone.

Would you or anyone else be interested in taking a shot at writing
such a function? I remember I looked at it a while back and it didn't
seem so hard, but the zoneinfo file format was really ugly with a lot
of unnecessary indirection.

Rich


  reply	other threads:[~2012-12-03 17:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-27  2:49 Rich Felker
2012-11-27 11:31 ` Szabolcs Nagy
2012-11-27 14:46   ` Rich Felker
2012-11-28  2:43 ` Isaac Dunham
2012-11-28  3:39   ` Rich Felker
2012-11-28  4:51     ` Isaac Dunham
2012-11-28 13:05       ` Rich Felker
2012-11-28 21:35         ` Rob Landley
2012-11-28 23:53           ` Rich Felker
2012-11-29  0:52             ` Rob Landley
2012-12-03 13:11 ` Szabolcs Nagy
2012-12-03 17:30   ` Rich Felker [this message]
2012-12-03 22:03     ` Szabolcs Nagy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121203173019.GI20323@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).