IBasicFileAttributes.LastModifiedTime Method

Definition

Returns the time of last modification.

[Android.Runtime.Register("lastModifiedTime", "()Ljava/nio/file/attribute/FileTime;", "GetLastModifiedTimeHandler:Java.Nio.FileNio.Attributes.IBasicFileAttributesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Nio.FileNio.Attributes.FileTime? LastModifiedTime ();
[<Android.Runtime.Register("lastModifiedTime", "()Ljava/nio/file/attribute/FileTime;", "GetLastModifiedTimeHandler:Java.Nio.FileNio.Attributes.IBasicFileAttributesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member LastModifiedTime : unit -> Java.Nio.FileNio.Attributes.FileTime

Returns

a FileTime representing the time the file was last modified

Attributes

Remarks

Returns the time of last modification.

If the file system implementation does not support a time stamp to indicate the time of last modification then this method returns an implementation specific default value, typically a FileTime representing the epoch (1970-01-01T00:00:00Z).

Java documentation for java.nio.file.attribute.BasicFileAttributes.lastModifiedTime().

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