Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 May 2025 17:39:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 287080] date(1): current number of seconds.milliseconds since the Unix epoch
Message-ID:  <bug-287080-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

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.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-287080-227>