Java Instant convert to FileTime
import java.nio.file.attribute.FileTime; import java.time.Instant; public class Main { public static void main(String[] args) { Instant ins = Instant.now(); System.out.println("ins:"+ins); FileTime fileTime = FileTime.from(ins); System.out.println(fileTime); }/*from www . j a v a2 s. c o m*/ }