Uses of Class
java.nio.file.attribute.FileTime
Package
Description
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
Interfaces and classes providing access to file and file system attributes.
Provides classes for reading and writing the standard ZIP and GZIP file
formats.
-
Uses of FileTime in java.nio.file
Modifier and TypeMethodDescriptionstatic FileTime
Files.getLastModifiedTime
(Path path, LinkOption... options) Returns a file's last modified time.Modifier and TypeMethodDescriptionstatic Path
Files.setLastModifiedTime
(Path path, FileTime time) Updates a file's last modified time attribute. -
Uses of FileTime in java.nio.file.attribute
Modifier and TypeClassDescriptionfinal class
Represents the value of a file's time stamp attribute.Modifier and TypeMethodDescriptionBasicFileAttributes.creationTime()
Returns the creation time.static FileTime
Returns aFileTime
representing a value at the given unit of granularity.static FileTime
Returns aFileTime
representing the same point of time value on the time-line as the providedInstant
object.static FileTime
FileTime.fromMillis
(long value) Returns aFileTime
representing the given value in milliseconds.BasicFileAttributes.lastAccessTime()
Returns the time of last access.BasicFileAttributes.lastModifiedTime()
Returns the time of last modification.Modifier and TypeMethodDescriptionint
Compares the value of twoFileTime
objects for order.void
BasicFileAttributeView.setTimes
(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) Updates any or all of the file's last modified time, last access time, and create time attributes. -
Uses of FileTime in java.util.zip
Modifier and TypeMethodDescriptionZipEntry.getCreationTime()
Returns the creation time of the entry.ZipEntry.getLastAccessTime()
Returns the last access time of the entry.ZipEntry.getLastModifiedTime()
Returns the last modification time of the entry.Modifier and TypeMethodDescriptionZipEntry.setCreationTime
(FileTime time) Sets the creation time of the entry.ZipEntry.setLastAccessTime
(FileTime time) Sets the last access time of the entry.ZipEntry.setLastModifiedTime
(FileTime time) Sets the last modification time of the entry.