[PATCH 1/2] [BZ #16141] strptime: extend %z range to UTC+14:00

James Perkins james@loowit.net
Wed Dec 3 22:24:00 GMT 2014


On Tue, Dec 2, 2014 at 10:21 PM, Paul Eggert <eggert@cs.ucla.edu> 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.

Cheers,
James
-- 
James Perkins <james@loowit.net>  KN1X  www.loowit.net/~james
2094 Arthur St, Eugene, OR 97405       +1.971.344.3969 mobile



More information about the Libc-alpha mailing list