IBasicFileAttributes.CreationTime Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the creation time.
[Android.Runtime.Register("creationTime", "()Ljava/nio/file/attribute/FileTime;", "GetCreationTimeHandler:Java.Nio.FileNio.Attributes.IBasicFileAttributesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Nio.FileNio.Attributes.FileTime? CreationTime ();
[<Android.Runtime.Register("creationTime", "()Ljava/nio/file/attribute/FileTime;", "GetCreationTimeHandler:Java.Nio.FileNio.Attributes.IBasicFileAttributesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member CreationTime : unit -> Java.Nio.FileNio.Attributes.FileTime
Returns
a FileTime
representing the time the file was created
- Attributes
Remarks
Returns the creation time. The creation time is the time that the file was created.
If the file system implementation does not support a time stamp to indicate the time when the file was created 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.creationTime()
.
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.