equal
deleted
inserted
replaced
305 * |
305 * |
306 * @param instant the instant to create the date from, not null |
306 * @param instant the instant to create the date from, not null |
307 * @param zone the time-zone, which may be an offset, not null |
307 * @param zone the time-zone, which may be an offset, not null |
308 * @return the local date, not null |
308 * @return the local date, not null |
309 * @throws DateTimeException if the result exceeds the supported range |
309 * @throws DateTimeException if the result exceeds the supported range |
|
310 * @since 9 |
310 */ |
311 */ |
311 public static LocalDate ofInstant(Instant instant, ZoneId zone) { |
312 public static LocalDate ofInstant(Instant instant, ZoneId zone) { |
312 Objects.requireNonNull(instant, "instant"); |
313 Objects.requireNonNull(instant, "instant"); |
313 Objects.requireNonNull(zone, "zone"); |
314 Objects.requireNonNull(zone, "zone"); |
314 ZoneRules rules = zone.getRules(); |
315 ZoneRules rules = zone.getRules(); |