Home > Blockchain >  How to access last modified date/time for file on exFAT with 10 ms resolution?
How to access last modified date/time for file on exFAT with 10 ms resolution?

Time:02-27

From my research, exFAT has a 2-second resolution for the last modified date/time of files. Also, there is another field for the file storing the offset to the last modified date/time with a 10-millisecond resolution. Am I correct about this?

When I display file properties in Windows Explorer, or use QFileInfo::lastModified() (from the Qt framework) to analyze the file, both methods only display the last modified date/time down to a 2-second resolution.

If I am correct about the above, how do I access the more precise timestamp using Qt, or the Win32 API, or Windows Explorer?

CodePudding user response:

According to FAT32 and exFAT, which file timestamps are supported?:

Timestamp granularity of 10 ms for Create and Modified times (down from 2 s of FAT, but not as fine as NTFS's 100 ns)

Timestamp granularity for Last Access time to double seconds (FAT had date only).

Do you HAVE to use lastModified? Does Qt expose two other fields?

Note: that "double seconds" granularity matches your observed "divisible by 2000 msecs"

CodePudding user response:

Here's the response from a Microsoft rep for what it's worth.

  • Related