Home
last modified time | relevance | path

Searched refs:odt (Results 1 – 8 of 8) sorted by relevance

/libcore/luni/src/test/java/libcore/java/time/
DOffsetDateTimeTest.java76 OffsetDateTime odt = in test_minus_non_utc_offset() local
80 odt.minus(1, ChronoUnit.HOURS)); in test_minus_non_utc_offset()
82 odt.minus(23, ChronoUnit.HOURS)); in test_minus_non_utc_offset()
84 odt.minus(1, ChronoUnit.MINUTES)); in test_minus_non_utc_offset()
86 odt.minus(60, ChronoUnit.SECONDS)); in test_minus_non_utc_offset()
88 odt.minus(1, ChronoUnit.MILLIS)); in test_minus_non_utc_offset()
90 odt.minus(1, ChronoUnit.NANOS)); in test_minus_non_utc_offset()
/libcore/ojluni/src/test/java/time/test/java/util/
DTestFormatter.java244 OffsetDateTime odt = ((ZonedDateTime)zdt).toOffsetDateTime(); in testTime() local
245 test(fmtStr, locale, expected, odt); in testTime()
246 test(fmtStr, locale, expected, odt.toOffsetTime()); in testTime()
268 OffsetDateTime odt = ((ZonedDateTime)zdt).toOffsetDateTime(); in testZoneId() local
269 test(fmtStr, locale, expected, odt); in testZoneId()
270 test(fmtStr, locale, expected, odt.toOffsetTime()); in testZoneId()
288 OffsetDateTime odt = ((ZonedDateTime)zdt).toOffsetDateTime(); in testInstant() local
289 test(fmtStr, locale, expected, odt); in testInstant()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKOffsetPrinterParser.java557 OffsetDateTime odt = OffsetDateTime.of(ldt, offset); in test_print_localized() local
562 assertEquals(f.format(odt), expected); in test_print_localized()
569 assertEquals(f.format(odt), expected); in test_print_localized()
575 assertEquals(f.format(odt), expected); in test_print_localized()
583 assertEquals(f.format(odt), expected); in test_print_localized()
DTCKDateTimeFormatter.java283 OffsetDateTime odt = OffsetDateTime.of(LocalDateTime.of(2008, 6, 30, 11, 30), OFFSET_PONE); in data_format_withZone_withChronology() local
294 {null, null, odt, "2008:11:+01:00::ISO"}, in data_format_withZone_withChronology()
304 {IsoChronology.INSTANCE, null, odt, "2008:11:+01:00::ISO"}, in data_format_withZone_withChronology()
314 {null, ZONE_PARIS, odt, "2008:12:+02:00:Europe/Paris:ISO"}, in data_format_withZone_withChronology()
324 {null, OFFSET_PTHREE, odt, "2008:13:+03:00:+03:00:ISO"}, in data_format_withZone_withChronology()
334 {ThaiBuddhistChronology.INSTANCE, null, odt, "2551:11:+01:00::ThaiBuddhist"}, in data_format_withZone_withChronology()
344 … {ThaiBuddhistChronology.INSTANCE, ZONE_PARIS, odt, "2551:12:+02:00:Europe/Paris:ThaiBuddhist"}, in data_format_withZone_withChronology()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKZonedDateTime.java1208 OffsetDateTime odt = TEST_LOCAL_2008_06_30_11_30_59_500.atOffset(OFFSET_0200);
1210 ZonedDateTime test = zdt.with(odt);
1211 assertEquals(test.toOffsetDateTime(), odt);
1217 OffsetDateTime odt = TEST_LOCAL_2008_06_30_11_30_59_500.atOffset(OFFSET_0130);
1219 ZonedDateTime test = zdt.with(odt);
1227 OffsetDateTime odt = TEST_PARIS_OVERLAP_2008_10_26_02_30.atOffset(OFFSET_0100);
1229 ZonedDateTime test = zdt.with(odt);
1230 assertEquals(test.toOffsetDateTime(), odt);
1236 OffsetDateTime odt = TEST_PARIS_OVERLAP_2008_10_26_02_30.atOffset(OFFSET_0200);
1238 ZonedDateTime test = zdt.with(odt);
[all …]
DTCKOffsetDateTime.java1178 OffsetDateTime odt = OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE);
1179 ZonedDateTime zdt = odt.plusSeconds(3).toZonedDateTime();
1180 assertEquals(odt.until(zdt, SECONDS), 3);
1185 OffsetDateTime odt = OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE);
1186 odt.until(Instant.ofEpochSecond(12), SECONDS);
/libcore/ojluni/src/main/java/java/time/
DZonedDateTime.java1232 } else if (adjuster instanceof OffsetDateTime odt) { in with()
1233 return ofLocal(odt.toLocalDateTime(), zone, odt.getOffset()); in with()
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneRules.java488 ZonedDateTime odt = ZonedDateTime.ofInstant(last.getInstant(), last.getOffsetAfter()); in test_London_previousTransition_rulesBased() local
489 odt = odt.withDayOfYear(1).plusYears(1).with(LocalTime.MIDNIGHT); in test_London_previousTransition_rulesBased()
490 assertEquals(test.previousTransition(odt.toInstant()), last); in test_London_previousTransition_rulesBased()