LocalTime.ofInstant

Obtains an instance of {@code LocalTime} from an {@code Instant} and zone ID. !(p) This creates a local time based on the specified instant. First, the offset from UTC/Greenwich is obtained using the zone ID and instant, which is simple as there is only one valid offset for each instant. Then, the instant and offset are used to calculate the local time.

@param instant the instant to create the time from, not null @param zone the time-zone, which may be an offset, not null @return the local time, not null @since 9

class LocalTime
static
ofInstant

Meta