Language

LocalDate.OfEpochDay(Int64) Method

Definition

Obtains an instance of LocalDate from the epoch day count.

[Android.Runtime.Register("ofEpochDay", "(J)Ljava/time/LocalDate;", "", ApiSince=26)]
public static Java.Time.LocalDate? OfEpochDay(long epochDay);
[<Android.Runtime.Register("ofEpochDay", "(J)Ljava/time/LocalDate;", "", ApiSince=26)>]
static member OfEpochDay : int64 -> Java.Time.LocalDate

Parameters

epochDay
Int64

the Epoch Day to convert, based on the epoch 1970-01-01

Returns

the local date, not null

Attributes

Remarks

Obtains an instance of LocalDate from the epoch day count. This returns a LocalDate with the specified epoch-day. The EPOCH_DAY is a simple incrementing count of days where day 0 is 1970-01-01. Negative numbers represent earlier days.

Java reference for java.time.LocalDate.ofEpochDay.

Applies to