Share via


IsoChronology.EpochSecond Method

Definition

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

[Android.Runtime.Register("epochSecond", "(IIIIIILjava/time/ZoneOffset;)J", "", ApiSince=34)]
public long EpochSecond (int prolepticYear, int month, int dayOfMonth, int hour, int minute, int second, Java.Time.ZoneOffset? zoneOffset);
[<Android.Runtime.Register("epochSecond", "(IIIIIILjava/time/ZoneOffset;)J", "", ApiSince=34)>]
member this.EpochSecond : int * int * int * int * int * int * Java.Time.ZoneOffset -> int64

Parameters

prolepticYear
Int32

the year, from MIN_YEAR to MAX_YEAR

month
Int32

the month-of-year, from 1 to 12

dayOfMonth
Int32

the day-of-month, from 1 to 31

hour
Int32

the hour-of-day, from 0 to 23

minute
Int32

the minute-of-hour, from 0 to 59

second
Int32

the second-of-minute, from 0 to 59

zoneOffset
ZoneOffset

the zone offset, not null

Returns

the number of seconds relative to 1970-01-01T00:00:00Z, may be negative

Attributes

Remarks

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

The number of seconds is calculated using the year, month, day-of-month, hour, minute, second, and zoneOffset.

Added in 9.

Java documentation for java.time.chrono.IsoChronology.epochSecond(int, int, int, int, int, int, java.time.ZoneOffset).

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