mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Rafał Miłecki" <zajec5@gmail.com>
To: musl@lists.openwall.com
Cc: "Rafał Miłecki" <rafal@milecki.pl>
Subject: Re: [PATCH] strptime: add support for %z field descriptor (ISO 8601 timezone)
Date: Wed, 25 Jul 2018 12:50:51 +0200	[thread overview]
Message-ID: <CACna6rz9rhmUtfpU-Xk5fEzdUHPRPwKKQkvyfVzGLN4W0tpdGg@mail.gmail.com> (raw)
In-Reply-To: <20180725104333.31485-1-zajec5@gmail.com>

On Wed, 25 Jul 2018 at 12:43, Rafał Miłecki <zajec5@gmail.com> wrote:
> From: Rafał Miłecki <rafal@milecki.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@milecki.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


      reply	other threads:[~2018-07-25 10:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-25 10:43 Rafał Miłecki
2018-07-25 10:50 ` Rafał Miłecki [this message]

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=CACna6rz9rhmUtfpU-Xk5fEzdUHPRPwKKQkvyfVzGLN4W0tpdGg@mail.gmail.com \
    --to=zajec5@gmail.com \
    --cc=musl@lists.openwall.com \
    --cc=rafal@milecki.pl \
    /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).