Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Feb 2021 02:08:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 253370] Nanoseconds is not supported in stat command
Message-ID:  <bug-253370-227-5AvyyqTRvS@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-253370-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253370

David Schlachter <fbsd-bugzilla@schlachter.ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fbsd-bugzilla@schlachter.ca

--- Comment #1 from David Schlachter <fbsd-bugzilla@schlachter.ca> ---
â‚£rom the man page:

> fmt     An optional output format specifier which is one of D, O, U, X,
>             F, or S.  These represent signed decimal output, octal output,
>             unsigned decimal output, hexadecimal output, floating point
>             output, and string output, respectively.  Some output formats do
>             not apply to all fields.  Floating point output only applies to
>             timespec fields (the a, m, and c fields).

The '%F' format specifier is what you're looking for.

e.g.

$ stat -f "Access (atime): %Fa%nModify (mtime): %Fm%nChange (ctime): %Fc%nBirth
 (btime): %FB" test.txt

Access (atime): 1612922853.117268000
Modify (mtime): 1612922853.117268000
Change (ctime): 1612922853.117292000
Birth  (btime): 1612922836.988935000

-- 
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-253370-227-5AvyyqTRvS>