Language

LocalDate.ToEpochDay Method

Definition

Gets this date as a day count relative to 1970-01-01.

[Android.Runtime.Register("toEpochDay", "()J", "", ApiSince=26)]
public long ToEpochDay();
[<Android.Runtime.Register("toEpochDay", "()J", "", ApiSince=26)>]
abstract member ToEpochDay : unit -> int64
override this.ToEpochDay : unit -> int64

Returns

Zero for 1970-01-01, a negative count for earlier dates, or a positive count for later dates.

Implements

Attributes

Remarks

The count uses the ISO calendar and changes by one for each calendar day. No time zone is used.

Applies to