FileTime.ToInstant 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.
Converts this FileTime
object to an Instant
.
[Android.Runtime.Register("toInstant", "()Ljava/time/Instant;", "", ApiSince=26)]
public Java.Time.Instant? ToInstant ();
[<Android.Runtime.Register("toInstant", "()Ljava/time/Instant;", "", ApiSince=26)>]
member this.ToInstant : unit -> Java.Time.Instant
Returns
an instant representing the same point on the time-line as
this FileTime
object
- Attributes
Remarks
Converts this FileTime
object to an Instant
.
The conversion creates an Instant
that represents the same point on the time-line as this FileTime
.
FileTime
can store points on the time-line further in the future and further in the past than Instant
. Conversion from such further time points saturates to Instant#MIN
if earlier than Instant.MIN
or Instant#MAX
if later than Instant.MAX
.
Added in 1.8.
Java documentation for java.nio.file.attribute.FileTime.toInstant()
.
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.