Instant.atOffset

Combines this instant with an offset to create an {@code OffsetDateTime}. !(p) This returns an {@code OffsetDateTime} formed from this instant at the specified offset from UTC/Greenwich. An exception will be thrown if the instant is too large to fit into an offset date-time. !(p) This method is equivalent to {@link OffsetDateTime#ofInstant(Instant, ZoneId) OffsetDateTime.ofInstant(this, offset)}.

@param offset the offset to combine with, not null @return the offset date-time formed from this instant and the specified offset, not null @throws DateTimeException if the result exceeds the supported range

class Instant
atOffset

Meta