Compartir a través de


IBasicFileAttributes.LastAccessTime Method

Definition

Returns the time of last access.

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

Returns

a FileTime representing the time of last access

Attributes

Remarks

Returns the time of last access.

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

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

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