Sdílet prostřednictvím


Instant.EpochSecond Property

Definition

Gets the number of seconds from the Java epoch of 1970-01-01T00:00:00Z.

public long EpochSecond { [Android.Runtime.Register("getEpochSecond", "()J", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getEpochSecond", "()J", "", ApiSince=26)>]
member this.EpochSecond : int64

Property Value

the seconds from the epoch of 1970-01-01T00:00:00Z

Attributes

Remarks

Gets the number of seconds from the Java epoch of 1970-01-01T00:00:00Z.

The epoch second count is a simple incrementing count of seconds where second 0 is 1970-01-01T00:00:00Z. The nanosecond part is returned by #getNano.

Java documentation for java.time.Instant.getEpochSecond().

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