coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: feature request for date: add formatting option for milliseconds


From: Phil Oertel
Subject: Re: feature request for date: add formatting option for milliseconds
Date: Tue, 8 Jan 2019 07:46:56 -0800

Agreed, not worth it. Thanks for the pointer!

On Mon, Jan 7, 2019, 3:11 PM Assaf Gordon <address@hidden wrote:

> Hello,
>
> On 2019-01-07 3:04 p.m., Phil Oertel wrote:
> > I propose a new formatting option for millis past the nearest
> second[..]  And
> > sure, one for micro too.
> >
> > You could do this already by truncating digits from nanos, but it'd be a
> > lot more convenient if date had an option, and hopefully not too hard to
> > add.
>
> As you wrote, it's very easy to do with truncating (i.e., adding a width
> specifier):
>
>    $ date +"%3N %6N %N"
>    892 892103 892103049
>
> Since it's only adding a single digit, I'm not sure consuming two
> more dedicated letters is worth it.
>
> regards,
>   - assaf
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]