Hi,
here is an example on FreeBSD 12.2 and stat command
stat -f "Access (atime): %Sa%nModify (mtime): %Sm%nChange (ctime): %Sc%nBirth (btime): %SB" /test.txt
Access (atime): Nov 19 17:26:43 2020
Modify (mtime): Nov 19 17:26:43 2020
Change (ctime): Nov 19 17:26:43 2020
Birth (btime): Nov 19 17:26:43 2020
But I want to change the time format to for stat command and want to display the nanoseconds in case a filesystem is used that stores it.
I am looking for this result:
Access (atime): Nov 19 17:26:43.123456789 2020
Modify (mtime): Nov 19 17:26:43.123456789 2020
Change (ctime): Nov 19 17:26:43.123456789 2020
Birth (btime): Nov 19 17:26:43.123456789 2020
How can I change the time format for nanoseconds in stat command?
If it is not supported would it be possible to support it FreeBSD developers?
here is an example on FreeBSD 12.2 and stat command
stat -f "Access (atime): %Sa%nModify (mtime): %Sm%nChange (ctime): %Sc%nBirth (btime): %SB" /test.txt
Access (atime): Nov 19 17:26:43 2020
Modify (mtime): Nov 19 17:26:43 2020
Change (ctime): Nov 19 17:26:43 2020
Birth (btime): Nov 19 17:26:43 2020
But I want to change the time format to for stat command and want to display the nanoseconds in case a filesystem is used that stores it.
I am looking for this result:
Access (atime): Nov 19 17:26:43.123456789 2020
Modify (mtime): Nov 19 17:26:43.123456789 2020
Change (ctime): Nov 19 17:26:43.123456789 2020
Birth (btime): Nov 19 17:26:43.123456789 2020
How can I change the time format for nanoseconds in stat command?
If it is not supported would it be possible to support it FreeBSD developers?