OffsetDateTime.toEpochSecond

Converts this date-time to the number of seconds from the epoch of 1970-01-01T00:00:00Z. !(p) This allows this date-time to be converted to a value of the {@link ChronoField#INSTANT_SECONDS epoch-seconds} field. This is primarily intended for low-level conversions rather than general application usage.

@return the number of seconds from the epoch of 1970-01-01T00:00:00Z

class OffsetDateTime
long
toEpochSecond
()

Meta