FileTime.toString() has the following syntax.
public String toString()
In the following code shows how to use FileTime.toString() method.
import java.nio.file.attribute.FileTime; //from ww w . ja va2 s . c o m public class Main { public static void main(String[] args) throws Exception { long time = System.currentTimeMillis(); FileTime fileTime = FileTime.fromMillis(time); System.out.println(fileTime.toString()); } }
The code above generates the following result.