LocalDateTime.OfEpochSecond(Int64, Int32, 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.
Obtains an instance of LocalDateTime using seconds from the epoch of 1970-01-01T00:00:00Z.
[Android.Runtime.Register("ofEpochSecond", "(JILjava/time/ZoneOffset;)Ljava/time/LocalDateTime;", "", ApiSince=26)]
public static Java.Time.LocalDateTime? OfEpochSecond(long epochSecond, int nanoOfSecond, Java.Time.ZoneOffset? offset);
[<Android.Runtime.Register("ofEpochSecond", "(JILjava/time/ZoneOffset;)Ljava/time/LocalDateTime;", "", ApiSince=26)>]
static member OfEpochSecond : int64 * int * Java.Time.ZoneOffset -> Java.Time.LocalDateTime
Parameters
- epochSecond
- Int64
the number of seconds from the epoch of 1970-01-01T00:00:00Z
- nanoOfSecond
- Int32
the nanosecond within the second, from 0 to 999,999,999
- offset
- ZoneOffset
the zone offset, not null
Returns
the local date-time, not null
- Attributes
Remarks
Obtains an instance of LocalDateTime using seconds from the epoch of 1970-01-01T00:00:00Z. This allows the epoch-second field to be converted to a local date-time. This is primarily intended for low-level conversions rather than general application usage.
Java reference for java.time.LocalDateTime.ofEpochSecond.