OffsetDateTime.ofInstant

Obtains an instance of {@code OffsetDateTime} from an {@code Instant} and zone ID. !(p) This creates an offset date-time with the same instant as that specified. Finding the offset from UTC/Greenwich is simple as there is only one valid offset for each instant.

@param instant the instant to create the date-time from, not null @param zone the time-zone, which may be an offset, not null @return the offset date-time, not null @throws DateTimeException if the result exceeds the supported range

class OffsetDateTime
static
ofInstant

Meta