How to return millisecond information for File Access on Mac Os X (in Java)?

前端 未结 1 1173
借酒劲吻你
借酒劲吻你 2021-01-18 17:52

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 m

相关标签:
1条回答
  • 2021-01-18 18:31

    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.

    0 讨论(0)
提交回复
热议问题