macoscommand-linefilesystemsmacos-high-sierraapfs

Are there any commands showing Apple File System (APFS) timestamps in nanoseconds?


I heard that timestamps in APFS are in nanoseconds.

Are there any commands that are able to show APFS timestamps in nanoseconds?

I've tried ls, stat but no luck so far.


Solution

  • You can get nanosecond timestamps by requesting floating point output:

    % stat -f %Fm foo
    1609297230.485880489