Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Add nanosecond support to strftime (zsh/datetime)
- X-seq: zsh-workers 43802
- From: dana <dana@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH] Add nanosecond support to strftime (zsh/datetime)
- Date: Wed, 7 Nov 2018 16:40:17 -0600
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=sjQOmIXsVap1w0ET//DqQAXD2+4A+mFdyMY+/VODpYk=; b=JuWAJ2IpsjEU5x7N27CEOuudVJdr5bBVrOLwuv1StL/jJgGIDNxJc3PdcGLS7eoFah En/z5TBG3z1mK42O1Mlg9b2IKrrcSxduAvS8HyNZa362G79ZR5ieH+lJOzNQXhagzPaN bRheLpFbZy3pJS9okTSmvpYPI5HdPk8MeS6/yc3y2V4wHzm8AcElLt4PjFRQFaMc2EZ0 2lkbBUhMXrERtNdrOzUXCzrwY4q5kFMkqau8dVD4LZY884gd871ctOUYn0/HImlrv/bA h+jru29WmrDsWqqMERLK7XI9wKEpK/TqfT+a04G5lgVvBoYBFLeeH6LYh2KpQJ0z9km9 Ws8A==
- In-reply-to: <CAH+w=7ZLNRfC11UVPxLSYwQu9EeQ3vVtE8DC3FruknSkSW1c9Q@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <A2485F5D-2B26-48BE-B695-2328DF86179D@dana.is> <CAH+w=7ZLNRfC11UVPxLSYwQu9EeQ3vVtE8DC3FruknSkSW1c9Q@mail.gmail.com>
On 7 Nov 2018, at 16:26, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>I'm having flashbacks that a new format specifier for this may have
>been discussed on the austin-group (POSIX standards) mailing list. If
>so, it would be preferable to match here whatever the (still
>forthcoming? I've lost track of austin-group recently) standard is
>going to be, rather than invent something of our own.
I don't follow the mailing list, but i couldn't find any mention of it on their
bug tracker.
In any case, this change doesn't add any format specifiers, it just allows
strftime to pass nanoseconds to ztrftime(). The previous change extended the
existing %#. specifier so that you could do %9., and then as an alias for that
it also added %N, which is what GNU date (and anything else using Gnulib's
nstrftime()) uses. If there is something different that might be coming to
POSIX, i agree that it would be nice to support that too/instead. (Though the
previous change was already released, so if we replaced it we might be
breaking stuff...)
dana
Messages sorted by:
Reverse Date,
Date,
Thread,
Author