LocalDate.ToEpochSecond(LocalTime, ZoneOffset) 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 LocalDate to the number of seconds since the epoch of 1970-01-01T00:00:00Z.
[Android.Runtime.Register("toEpochSecond", "(Ljava/time/LocalTime;Ljava/time/ZoneOffset;)J", "", ApiSince=34)]
public long ToEpochSecond(Java.Time.LocalTime? time, Java.Time.ZoneOffset? offset);
[<Android.Runtime.Register("toEpochSecond", "(Ljava/time/LocalTime;Ljava/time/ZoneOffset;)J", "", ApiSince=34)>]
member this.ToEpochSecond : Java.Time.LocalTime * Java.Time.ZoneOffset -> int64
Parameters
- time
- LocalTime
the local time, not null
- offset
- ZoneOffset
the zone offset, not null
Returns
the number of seconds since the epoch of 1970-01-01T00:00:00Z, may be negative
- Attributes
Remarks
Converts this LocalDate to the number of seconds since the epoch of 1970-01-01T00:00:00Z. This combines this local date with the specified time and offset to calculate the epoch-second value, which is the number of elapsed seconds from 1970-01-01T00:00:00Z. Instants before the epoch have negative epoch-seconds; instants at or after the epoch have non-negative epoch-seconds.
Java reference for java.time.LocalDate.toEpochSecond.