[Bug 253370] Nanoseconds is not supported in stat command
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Feb 10 02:08:23 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253370
David Schlachter <fbsd-bugzilla at schlachter.ca> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fbsd-bugzilla at schlachter.ca
--- Comment #1 from David Schlachter <fbsd-bugzilla at 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.
More information about the freebsd-bugs
mailing list