Udostępnij za pośrednictwem


IInstantSource.System Method

Definition

Obtains a source that returns the current instant using the best available system clock.

[Android.Runtime.Register("system", "()Ljava/time/InstantSource;", "", ApiSince=34)]
public static Java.Time.IInstantSource? System ();
[<Android.Runtime.Register("system", "()Ljava/time/InstantSource;", "", ApiSince=34)>]
static member System : unit -> Java.Time.IInstantSource

Returns

a source that uses the best available system clock, not null

Attributes

Remarks

Obtains a source that returns the current instant using the best available system clock.

This source is based on the best available system clock. This may use System#currentTimeMillis(), or a higher resolution system clock if one is available.

The returned implementation is immutable, thread-safe and Serializable.

Java documentation for java.time.InstantSource.system().

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