IChronology.EpochSecond Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
EpochSecond(Int32, Int32, Int32, Int32, Int32, Int32, ZoneOffset) |
Gets the number of seconds from the epoch of 1970-01-01T00:00:00Z. |
EpochSecond(IEra, Int32, Int32, Int32, Int32, Int32, Int32, ZoneOffset) |
Gets the number of seconds from the epoch of 1970-01-01T00:00:00Z. |
EpochSecond(Int32, Int32, Int32, Int32, Int32, Int32, ZoneOffset)
Gets the number of seconds from the epoch of 1970-01-01T00:00:00Z.
[Android.Runtime.Register("epochSecond", "(IIIIIILjava/time/ZoneOffset;)J", "GetEpochSecond_IIIIIILjava_time_ZoneOffset_Handler:Java.Time.Chrono.IChronology, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public virtual 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", "GetEpochSecond_IIIIIILjava_time_ZoneOffset_Handler:Java.Time.Chrono.IChronology, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member EpochSecond : int * int * int * int * int * int * Java.Time.ZoneOffset -> int64
override this.EpochSecond : int * int * int * int * int * int * Java.Time.ZoneOffset -> int64
Parameters
- prolepticYear
- Int32
the chronology proleptic-year
- month
- Int32
the chronology month-of-year
- dayOfMonth
- Int32
the chronology day-of-month
- 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 proleptic-year, month, day-of-month, hour, minute, second, and zoneOffset.
Added in 9.
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
EpochSecond(IEra, Int32, Int32, Int32, Int32, Int32, Int32, ZoneOffset)
Gets the number of seconds from the epoch of 1970-01-01T00:00:00Z.
[Android.Runtime.Register("epochSecond", "(Ljava/time/chrono/Era;IIIIIILjava/time/ZoneOffset;)J", "GetEpochSecond_Ljava_time_chrono_Era_IIIIIILjava_time_ZoneOffset_Handler:Java.Time.Chrono.IChronology, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public virtual long EpochSecond (Java.Time.Chrono.IEra? era, int yearOfEra, int month, int dayOfMonth, int hour, int minute, int second, Java.Time.ZoneOffset? zoneOffset);
[<Android.Runtime.Register("epochSecond", "(Ljava/time/chrono/Era;IIIIIILjava/time/ZoneOffset;)J", "GetEpochSecond_Ljava_time_chrono_Era_IIIIIILjava_time_ZoneOffset_Handler:Java.Time.Chrono.IChronology, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member EpochSecond : Java.Time.Chrono.IEra * int * int * int * int * int * int * Java.Time.ZoneOffset -> int64
override this.EpochSecond : Java.Time.Chrono.IEra * int * int * int * int * int * int * Java.Time.ZoneOffset -> int64
Parameters
- era
- IEra
the era of the correct type for the chronology, not null
- yearOfEra
- Int32
the chronology year-of-era
- month
- Int32
the chronology month-of-year
- dayOfMonth
- Int32
the chronology day-of-month
- 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 era, year-of-era, month, day-of-month, hour, minute, second, and zoneOffset.
Added in 9.
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.