title: Java 7 NIO.2 Files.getLastModifiedTime time zone
body: <p>I'm writing a program which needs to determine files/directories last modified time. I want to handle this time using Joda Time, and I'm using Java 7 NIO.2 class <code>Files</code> to get file last modified time. Its <code>getLastModifiedTime()</code> method returns an instance of <code>FileTime</code> class, which has convenient method <code>toMillis()</code>, whose result I pass to Joda Time <code>DateTime</code> class constructor:</p>
  
  <pre><code>new DateTime(Files.getLastModifiedTime(path).toMillis());
  </code></pre>
  
  <p>However, I have a feeling that I'm doing this wrong, since <code>DateTime(long)</code> constructor explicitly mentions that <code>DateTime</code> instance will be created with default time zone. <code>FileTime</code> docs, however, do not mention its time zone anywhere. I looked through <code>FileTime</code> code; it seems to be very simple, and its <code>toString()</code> method suggests that it is using UTC time zone (it creates a <code>Calendar</code> in UTC time zone and sets its milliseconds directly).</p>
  
  <p>So, does <code>FileTime</code> uses UTC or local time? What is the correct way to convert <code>FileTime</code> to <code>DateTime</code>?</p>