title: Setting/changing the ctime or "Change time" attribute on a file
body: <p>I wish to change the timestamp metadata on files in Java using the <code>java.nio.Files</code> class.</p>
  
  <p>I would like to change all 3 Linux/ext4 timestamps (last modified, access, and changed).</p>
  
  <p>I am able to change the first two timestamp fields as follows:</p>
  
  <pre><code>Files.setLastModifiedTime(pathToMyFile, myCustomTime);
  Files.setAttribute(pathToMyFile, "basic:lastAccessTime", myCustomTime);
  </code></pre>
  
  <p>However, I am unable modify the last <em>Change:</em> time on the file. Also, it is concerning that there is no change timestamp  mentioned  in the <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/file/attribute/BasicFileAttributeView.html" rel="noreferrer">documentation</a>. The closest available attribute is <code>creationTime</code>, which I tried without any success.</p>
  
  <p>Any ideas on how to modify the <code>Change:</code> metadata for a file according to a custom timestamp in Java?</p>
  
  <p>Thank you!</p>