|
From: | Assaf Gordon |
Subject: | Re: feature request for date: add formatting option for milliseconds |
Date: | Mon, 7 Jan 2019 16:10:58 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |