File timestamp precision on Linux?
Alan.Bateman at oracle.com
Mon Jun 9 06:42:02 UTC 2014
On 09/06/2014 00:57, Zhong Yu wrote:
> Apparently, Java8 reports Linux file timestamps only in SECOND
> precision? Am I doing something wrong?
> Java version:
> java version "1.8.0_20-ea"
> Java(TM) SE Runtime Environment (build 1.8.0_20-ea-b17)
> Java HotSpot(TM) 64-Bit Server VM (build 25.20-b17, mixed mode)
> Linux version:
> Linux 3.10.40-50.136.amzn1.x86_64 x86_64
> (an amazon aws micro instance)
It supports higher precision timestamps too. Can you run locally and
print out the value of "time"? I wonder if the issue is AWS or something
else (like toInstant)
More information about the nio-dev