Here you can find the source of getLastModifiedTime(Path path)
public static FileTime getLastModifiedTime(Path path)
//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; } }