[Bug 287080] date(1): current number of seconds.milliseconds since the Unix epoch

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 03 Jun 2025 00:38:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287080

Dan Anderson <daniel.r.anderson@icloud.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.r.anderson@icloud.co
                   |                            |m

--- Comment #2 from Dan Anderson <daniel.r.anderson@icloud.com> ---
So I was looking into this because it looks like an interesting first issue.

Looking at the source code for date.c we have this:

* The strftime_ns function is a wrapper around strftime(3), which adds support
* for features absent from strftime(3). Currently, the only extra feature is
* support for %N, the nanosecond conversion specification.

So it seems that this behavior is expected, although I suppose you could always
multiple nanoseconds by 10e3.

The question then becomes what part of strftime to cover.  I will take a deeper
dive into the issue and try my hand at doing a patch.

-- 
You are receiving this mail because:
You are the assignee for the bug.