Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Add nanosecond support to strftime (zsh/datetime)



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