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

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 26 May 2025 17:39:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287080

            Bug ID: 287080
           Summary: date(1): current number of seconds.milliseconds since
                    the Unix epoch
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: wosch@FreeBSD.org

This will output the current time as the number of seconds since the epoch

$ date +%s
1748280942

However, there is no option for milliseconds.
GNU date on Linux supports milliseconds.

$ pkg install coreutils
$ gdate +%s.%3N
1748280955.153

It would be great if FreeBSD supports milliseconds as well.

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