Home
last modified time | relevance | path

Searched refs:ofInstant (Results 1 – 18 of 18) sorted by relevance

/libcore/ojluni/src/test/java/time/test/java/time/
DTestOffsetDateTime_instants.java88 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/
DZonedDateTimeTest.java100 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/
DOffsetDateTime.java241 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()
DZonedDateTime.java228 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()
DOffsetTime.java195 return ofInstant(now, clock.getZone().getRules().getOffset(now)); in now()
249 public static OffsetTime ofInstant(Instant instant, ZoneId zone) { in ofInstant() method in OffsetTime
DInstant.java1189 return OffsetDateTime.ofInstant(this, offset); in atOffset()
1207 return ZonedDateTime.ofInstant(this, zone); in atZone()
DLocalDateTime.java387 public static LocalDateTime ofInstant(Instant instant, ZoneId zone) { in ofInstant() method in LocalDateTime
/libcore/luni/src/test/java/libcore/java/time/zone/
DZoneRulesTest.java59 LocalDateTime localDateTime = LocalDateTime.ofInstant(instant, offset); in test_of_ZoneOffset()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKZonedDateTime.java297 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 …]
DTCKOffsetTime.java322 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);
DTCKLocalDateTime.java775 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/
DChronoZonedDateTimeImpl.java170 static ChronoZonedDateTimeImpl<?> ofInstant(Chronology chrono, Instant instant, ZoneId zone) { in ofInstant() method in ChronoZonedDateTimeImpl
188 return (ChronoZonedDateTimeImpl<D>)ofInstant(getChronology(), instant, zone); in create()
DChronology.java529 return ChronoZonedDateTimeImpl.ofInstant(this, instant, zone); in zonedDateTime()
DIsoChronology.java306 return ZonedDateTime.ofInstant(instant, zone); in zonedDateTime()
/libcore/luni/src/test/java/libcore/java/util/
DGregorianCalendarTest.java307 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/
DOffsetDateTime.java122 public static java.time.OffsetDateTime ofInstant( in ofInstant() method in OffsetDateTime
/libcore/ojluni/src/main/java/java/util/
DGregorianCalendar.java3427 return ZonedDateTime.ofInstant(Instant.ofEpochMilli(getTimeInMillis()), in toZonedDateTime()
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneRules.java470 ZonedDateTime odt = ZonedDateTime.ofInstant(last.getInstant(), last.getOffsetAfter()); in test_London_previousTransition_rulesBased()