toInstantUsingOffset

Builds an Instant from the fields in this DateTimeComponents.

Uses the fields required for toLocalDateTime and toUtcOffset.

Almost always equivalent to toLocalDateTime().toInstant(toUtcOffset()), but also accounts for cases when the year is outside the range representable by LocalDate but not outside the range representable by Instant.

Throws

if any of the required fields are not present, out-of-range, or inconsistent with one another.