ChronoZonedDateTime toEpochSecond() method in Java with Examples
The toEpochSecond() method of a ChronoZonedDateTime interface is used to convert this ChronoZonedDateTime to the number of seconds since the epoch of 1970-01-01T00:00:00Z. The method combines this ChronoZonedDateTime with the offset passed as parameters to calculate the epoch-second value, which is