I just recognized that Mac Os X does not return any millisecond information to java.io.File#lastModified()
method.
The long values are rounded, so the most specific kind of information is the second after transfer to a DateTime
Object.
Is there a way to get those information some other way, maybe through the java.nio.file.Files#readAttributes(Path,Class,LinkOption[])
method, or want it be possible to distinguish between milliseconds?
This is a limitation of the file system, not of the Java API. According to the format specification HFS+ only stores timestamps to a granularity of one second.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With