Java Path File Time nio getLastModifiedTime(Path path)

Here you can find the source of getLastModifiedTime(Path path)

Description

get Last Modified Time

License

Apache License

Declaration

public static FileTime getLastModifiedTime(Path path) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.nio.file.*;

import java.nio.file.attribute.FileTime;

public class Main {
    public static FileTime getLastModifiedTime(Path path) {
        try {//ww  w.  j  a  va2s  .c o m
            return Files.getLastModifiedTime(path);
        } catch (Exception e) {
            //            e.printStackTrace();
        }
        return null;
    }
}

Related

  1. addTimestamp(Path base, TimeUnit unit)
  2. awaitLogMessage(String message, long timeout, Path logFilePath)
  3. fileCreationTime(Path path)
  4. getLastAccessTime(Path file)
  5. getLastModificationTime(Path path)
  6. getLastModifiedTimeInMillis(Path path)
  7. getMTime(Path path)
  8. setFileTimes(String path, Date creationTime, Date lastAccessTime, Date lastModifiedTime)
  9. setTimes(Path path, Date time)