As in the javadocs for java.io.File
:
new File("/path/to/file").lastModified()
More Related Contents:
- How can I increment a date by one day in Java?
- Android/Java – Date Difference in days
- Java SimpleDateFormat(“yyyy-MM-dd’T’HH:mm:ss’Z'”) gives timezone as IST
- SimpleDateFormat and locale based format string
- In Java, how do I parse XML as a String instead of a file?
- How to register some URL namespace (myapp://app.start/) for accessing your program by calling a URL in browser in Android OS?
- How to convert String to Date without knowing the format?
- How to subtract X day from a Date object in Java?
- Get yesterday’s date using Date [duplicate]
- How to read a file from a jar file?
- Convert java.time.Instant to java.sql.Timestamp without Zone offset
- Accessing files with spaces in filename from Java
- Java: Date parsing, why do I get an error
- How to format date string in java? [duplicate]
- What is the default timezone in java.util.Date
- adding progress bar to each table cell for file progress – Java
- Using Unicode characters for file names inside a zip archive
- Getting the current time millis from device and converting it into a new date with different timezone [duplicate]
- Convert LocalDate in DD/MM/YYYY LocalDate [duplicate]
- Android Days between two dates
- Create file with given size in Java
- Converting a Date object to a calendar object [duplicate]
- Is there a date format to display the day of the week in java?
- Java 8 LocalDate – How do I get all dates between two dates?
- How can I catch all exceptions thrown through reading / writing a file?
- Difference between java.io.PrintWriter and java.io.BufferedWriter?
- How to atomically rename a file in Java, even if the dest file already exists?
- How can I read file from classes directory in my WAR?
- Test if a file is an image file
- How to save and retrieve Date in SharedPreferences