/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestOffsetDateTime_instants.java | 88 OffsetDateTime.ofInstant((Instant) null, OFFSET_PONE); in factory_ofInstant_nullInstant() 94 OffsetDateTime.ofInstant(instant, (ZoneOffset) null); in factory_ofInstant_nullOffset() 100 OffsetDateTime test = OffsetDateTime.ofInstant(instant, OFFSET_PONE); in factory_ofInstant_allSecsInDay() 115 OffsetDateTime test = OffsetDateTime.ofInstant(instant, ZoneOffset.UTC); in factory_ofInstant_allDaysInCycle() 136 OffsetDateTime.ofInstant(instant, ZoneOffset.UTC); in factory_ofInstant_tooLow() 149 OffsetDateTime.ofInstant(instant, ZoneOffset.UTC); in factory_ofInstant_tooBig() 158 OffsetDateTime test = OffsetDateTime.ofInstant(instant, OFFSET_MIN); in factory_ofInstant_minWithMinOffset() 174 OffsetDateTime test = OffsetDateTime.ofInstant(instant, OFFSET_MAX); in factory_ofInstant_minWithMaxOffset() 190 OffsetDateTime test = OffsetDateTime.ofInstant(instant, OFFSET_MIN); in factory_ofInstant_maxWithMinOffset() 206 OffsetDateTime test = OffsetDateTime.ofInstant(instant, OFFSET_MAX); in factory_ofInstant_maxWithMaxOffset() [all …]
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | ZonedDateTimeTest.java | 100 ZonedDateTime zonedDateTime = ZonedDateTime.ofInstant(localDateTime, offset, zone); in checkOfInstant() 119 ZonedDateTime.ofInstant(null, OFFSET_P1, ZONE_VIENNA); in test_ofInstant_localDateTime_null() 124 ZonedDateTime.ofInstant(LDT_P1, null, ZONE_VIENNA); in test_ofInstant_offset_null() 129 ZonedDateTime.ofInstant(LDT_P1, OFFSET_P1, null); in test_ofInstant_zone_null()
|
/libcore/ojluni/src/main/java/java/time/ |
D | OffsetDateTime.java | 241 return ofInstant(now, clock.getZone().getRules().getOffset(now)); in now() 317 public static OffsetDateTime ofInstant(Instant instant, ZoneId zone) { in ofInstant() method in OffsetDateTime 360 return OffsetDateTime.ofInstant(instant, offset); in from() 907 return ofInstant((Instant) adjuster, offset); in with() 965 … case INSTANT_SECONDS: return ofInstant(Instant.ofEpochSecond(newValue, getNano()), offset); in with() 1688 return ZonedDateTime.ofInstant(dateTime, offset, zone); in atZoneSameInstant()
|
D | ZonedDateTime.java | 228 return ofInstant(now, clock.getZone()); in now() 400 public static ZonedDateTime ofInstant(Instant instant, ZoneId zone) { in ofInstant() method in ZonedDateTime 426 …public static ZonedDateTime ofInstant(LocalDateTime localDateTime, ZoneOffset offset, ZoneId zone)… in ofInstant() method in ZonedDateTime 625 return ofInstant(newDateTime, offset, zone); in resolveInstant()
|
D | OffsetTime.java | 195 return ofInstant(now, clock.getZone().getRules().getOffset(now)); in now() 249 public static OffsetTime ofInstant(Instant instant, ZoneId zone) { in ofInstant() method in OffsetTime
|
D | Instant.java | 1189 return OffsetDateTime.ofInstant(this, offset); in atOffset() 1207 return ZonedDateTime.ofInstant(this, zone); in atZone()
|
D | LocalDateTime.java | 387 public static LocalDateTime ofInstant(Instant instant, ZoneId zone) { in ofInstant() method in LocalDateTime
|
/libcore/luni/src/test/java/libcore/java/time/zone/ |
D | ZoneRulesTest.java | 59 LocalDateTime localDateTime = LocalDateTime.ofInstant(instant, offset); in test_of_ZoneOffset()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKZonedDateTime.java | 297 ZonedDateTime expected = ZonedDateTime.ofInstant(instant, zone); 436 ZonedDateTime test = ZonedDateTime.ofInstant(instant, ZONE_PARIS); 443 ZonedDateTime test = ZonedDateTime.ofInstant(instant, OFFSET_0200); 450 ZonedDateTime test = ZonedDateTime.ofInstant(instant, ZONE_PARIS); 457 ZonedDateTime test = ZonedDateTime.ofInstant(instant, ZONE_PARIS); 464 ZonedDateTime test = ZonedDateTime.ofInstant(instant, ZONE_PARIS); 471 ZonedDateTime test = ZonedDateTime.ofInstant(instant, ZONE_PARIS); 479 ZonedDateTime test = ZonedDateTime.ofInstant(instant, OFFSET_0100); 495 ZonedDateTime test = ZonedDateTime.ofInstant(instant, ZoneOffset.UTC); 507 ZonedDateTime test = ZonedDateTime.ofInstant(instant, OFFSET_MIN); [all …]
|
D | TCKOffsetTime.java | 322 OffsetTime.ofInstant((Instant) null, ZoneOffset.UTC); 328 OffsetTime.ofInstant(instant, (ZoneOffset) null); 335 OffsetTime test = OffsetTime.ofInstant(instant, ZoneOffset.UTC); 347 OffsetTime test = OffsetTime.ofInstant(instant, ZoneOffset.UTC); 358 OffsetTime test = OffsetTime.ofInstant(Instant.MAX, ZoneOffset.UTC); 367 OffsetTime test = OffsetTime.ofInstant(Instant.MIN, ZoneOffset.UTC);
|
D | TCKLocalDateTime.java | 775 LocalDateTime test = LocalDateTime.ofInstant(instant, zone); 781 LocalDateTime.ofInstant(Instant.MAX, OFFSET_PONE) ; 786 LocalDateTime.ofInstant(Instant.MIN, OFFSET_PONE) ; 791 LocalDateTime.ofInstant((Instant) null, ZONE_GAZA); 796 LocalDateTime.ofInstant(Instant.EPOCH, (ZoneId) null);
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoZonedDateTimeImpl.java | 170 static ChronoZonedDateTimeImpl<?> ofInstant(Chronology chrono, Instant instant, ZoneId zone) { in ofInstant() method in ChronoZonedDateTimeImpl 188 return (ChronoZonedDateTimeImpl<D>)ofInstant(getChronology(), instant, zone); in create()
|
D | Chronology.java | 529 return ChronoZonedDateTimeImpl.ofInstant(this, instant, zone); in zonedDateTime()
|
D | IsoChronology.java | 306 return ZonedDateTime.ofInstant(instant, zone); in zonedDateTime()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | GregorianCalendarTest.java | 307 ZonedDateTime.ofInstant(Instant.ofEpochMilli(Long.MAX_VALUE).plusMillis(1), gmt), in test_fromZonedDateTime_invalidValues() 308 ZonedDateTime.ofInstant(Instant.ofEpochMilli(Long.MIN_VALUE).minusMillis(1), gmt), in test_fromZonedDateTime_invalidValues()
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | OffsetDateTime.java | 122 public static java.time.OffsetDateTime ofInstant( in ofInstant() method in OffsetDateTime
|
/libcore/ojluni/src/main/java/java/util/ |
D | GregorianCalendar.java | 3427 return ZonedDateTime.ofInstant(Instant.ofEpochMilli(getTimeInMillis()), in toZonedDateTime()
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKZoneRules.java | 470 ZonedDateTime odt = ZonedDateTime.ofInstant(last.getInstant(), last.getOffsetAfter()); in test_London_previousTransition_rulesBased()
|