IChronoZonedDateTime.ToEpochSecond 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.
Converts this date-time to the number of seconds from the epoch of 1970-01-01T00:00:00Z.
[Android.Runtime.Register("toEpochSecond", "()J", "GetToEpochSecondHandler:Java.Time.Chrono.IChronoZonedDateTime, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public virtual long ToEpochSecond ();
[<Android.Runtime.Register("toEpochSecond", "()J", "GetToEpochSecondHandler:Java.Time.Chrono.IChronoZonedDateTime, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member ToEpochSecond : unit -> int64
override this.ToEpochSecond : unit -> int64
Returns
the number of seconds from the epoch of 1970-01-01T00:00:00Z
- Attributes
Remarks
Converts this date-time to the number of seconds from the epoch of 1970-01-01T00:00:00Z.
This uses the #toLocalDateTime() local date-time and #getOffset() offset to calculate the epoch-second value, which is the number of elapsed seconds from 1970-01-01T00:00:00Z. Instants on the time-line after the epoch are positive, earlier are negative.
Java documentation for java.time.chrono.ChronoZonedDateTime.toEpochSecond()
.
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.