Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 445
Domon Avatar asked Oct 09 '17 05:10

Domon


People also ask

How do I know if my Mac is using APFS?

If the "file system is a newer version" and is labeled as "Apple File System" then your startup disk is using APFS and is not currently rebuildable.

Why did Apple switch to APFS?

Why the change? Apple has been using the HFS+ file system, and its predecessor HFS, for more than 30 years. As computers have changed, there has been a need to update the way the file system works. These older file systems were designed for smaller disks — even floppy disks — with fewer and smaller files.

What is APFS format on Mac?

Apple File System (APFS), the default file system for Mac computers using macOS 10.13 or later, features strong encryption, space sharing, snapshots, fast directory sizing, and improved file system fundamentals.

Does iOS use APFS?

Apple File System (APFS) is a proprietary file system developed and deployed by Apple Inc. for macOS Sierra (10.12. 4) and later, iOS 10.3 and later, tvOS 10.2 and later, watchOS 3.2 and later, and all versions of iPadOS.


1 Answers

You can get nanosecond timestamps by requesting floating point output:

% stat -f %Fm foo
1609297230.485880489
like image 134
thakis Avatar answered Oct 07 '22 16:10

thakis