File.lastModified
Class Overview | Class Members |
This Package |
All Packages
public long lastModified()
Returns
the time the file specified by this object was last modified,
or 0L if the specified file does not exist.
Description
Returns the time that the file represented by this
File object was last modified.
The return value is system dependent and should only be used to
compare with other values returned by last modified. It should not
be interpreted as an absolute time.
Exceptions
SecurityException
if a security manager exists, its
checkRead method is called with the pathname
of this File to see if the application is
allowed read access to the file.
See Also
getPath, checkRead