Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Wed, 25 Jul 2018 12:50:51 +0200
From: Rafał Miłecki <zajec5@...il.com>
To: musl@...ts.openwall.com
Cc: Rafał Miłecki <rafal@...ecki.pl>
Subject: Re: [PATCH] strptime: add support for %z field descriptor (ISO 8601 timezone)

On Wed, 25 Jul 2018 at 12:43, Rafał Miłecki <zajec5@...il.com> wrote:
> From: Rafał Miłecki <rafal@...ecki.pl>
>
> This is glibc extension for parsing ISO 8601 formatted timezone offset.
> Supported formats are: ±hh:mm, ±hhmm and ±hh.
>
> While strptime() contains some helpers for parsing (e.g. numeric_range
> and numeric_digits) they couldn't be used for %z due to a bigger
> complexity of that field (two numbers, optional separator).
>
> Signed-off-by: Rafał Miłecki <rafal@...ecki.pl>

I found (when Googling) two people looking for that extension just
like me. One of these questions was asked back in 2015 [0] and the
reply was "it seems to be a reasonable extension" so I thought I'll
give it a try. I hope can consider adding support for that %z
extension.

[0] http://h206.n179.cust.dataforce.net/lists/musl/2015/08/14/7

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.