Files.SetLastModifiedTime(IPath, FileTime) Method

Definition

Updates a file's last modified time attribute.

[Android.Runtime.Register("setLastModifiedTime", "(Ljava/nio/file/Path;Ljava/nio/file/attribute/FileTime;)Ljava/nio/file/Path;", "", ApiSince=26)]
public static Java.Nio.FileNio.IPath? SetLastModifiedTime (Java.Nio.FileNio.IPath? path, Java.Nio.FileNio.Attributes.FileTime? time);
[<Android.Runtime.Register("setLastModifiedTime", "(Ljava/nio/file/Path;Ljava/nio/file/attribute/FileTime;)Ljava/nio/file/Path;", "", ApiSince=26)>]
static member SetLastModifiedTime : Java.Nio.FileNio.IPath * Java.Nio.FileNio.Attributes.FileTime -> Java.Nio.FileNio.IPath

Parameters

path
IPath

the path to the file

time
FileTime

the new last modified time

Returns

IPath

the path

Attributes

Remarks

Java documentation for java.nio.file.Files.setLastModifiedTime(java.nio.file.Path, java.nio.file.attribute.FileTime).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to