This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH 1/2] [BZ #16141] strptime: extend %z range to UTC+14:00
- From: James Perkins <james at loowit dot net>
- To: Paul Eggert <eggert at cs dot ucla dot edu>
- Cc: GNULibC List <libc-alpha at sourceware dot org>
- Date: Wed, 3 Dec 2014 14:24:14 -0800
- Subject: Re: [PATCH 1/2] [BZ #16141] strptime: extend %z range to UTC+14:00
- Authentication-results: sourceware.org; auth=none
- References: <1417564016-3572-1-git-send-email-james at loowit dot net> <547E67EF dot 5060901 at cs dot ucla dot edu> <CAJ2jFj5m48m+ntQg3wNNgfo3tBH=GACNPVPA8Vq9g=7gCO7g9w at mail dot gmail dot com> <547EABFC dot 80503 at cs dot ucla dot edu>
On Tue, Dec 2, 2014 at 10:21 PM, Paul Eggert <firstname.lastname@example.org> wrote:
> Yes, that's right. If possible it should go all the way to -24:59:59 to
> +25:59:59. Or perhaps you should allow the first two digits to be anything
> up to 99; why not be generous?
I will rework strptime to remove the limits on hours, so that strptime will
calculate a correct seconds offset for values in the range -9959 to +9959 if
minutes are provided in the input string, or -99 to +99 hours if the minutes
were not provided.
I do not plan to extend strptime's functionality to include optional seconds
(presumably a six numeric digit offset string) at this time; it is a new feature
and deserves its own bugzilla entry. It will also need a champion which is
more motivated and better connected than I am.
James Perkins <email@example.com> KN1X www.loowit.net/~james
2094 Arthur St, Eugene, OR 97405 +1.971.344.3969 mobile