Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/time/test/java/util/
DTestFormatter.java201 OffsetDateTime odt = ((ZonedDateTime)zdt).toOffsetDateTime(); in testTime() local
202 test(fmtStr, locale, expected, odt); in testTime()
203 test(fmtStr, locale, expected, odt.toOffsetTime()); in testTime()
231 OffsetDateTime odt = ((ZonedDateTime)zdt).toOffsetDateTime(); in testZoneId() local
232 test(fmtStr, locale, expected, odt); in testZoneId()
233 test(fmtStr, locale, expected, odt.toOffsetTime()); in testZoneId()
251 OffsetDateTime odt = ((ZonedDateTime)zdt).toOffsetDateTime(); in testInstant() local
252 test(fmtStr, locale, expected, odt); in testInstant()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKOffsetPrinterParser.java318 OffsetDateTime odt = OffsetDateTime.of(ldt, offset); in test_print_localized() local
323 assertEquals(f.format(odt), expected); in test_print_localized()
330 assertEquals(f.format(odt), expected); in test_print_localized()
336 assertEquals(f.format(odt), expected); in test_print_localized()
344 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.java1213 OffsetDateTime odt = TEST_LOCAL_2008_06_30_11_30_59_500.atOffset(OFFSET_0200);
1215 ZonedDateTime test = zdt.with(odt);
1216 assertEquals(test.toOffsetDateTime(), odt);
1222 OffsetDateTime odt = TEST_LOCAL_2008_06_30_11_30_59_500.atOffset(OFFSET_0130);
1224 ZonedDateTime test = zdt.with(odt);
1232 OffsetDateTime odt = TEST_PARIS_OVERLAP_2008_10_26_02_30.atOffset(OFFSET_0100);
1234 ZonedDateTime test = zdt.with(odt);
1235 assertEquals(test.toOffsetDateTime(), odt);
1241 OffsetDateTime odt = TEST_PARIS_OVERLAP_2008_10_26_02_30.atOffset(OFFSET_0200);
1243 ZonedDateTime test = zdt.with(odt);
[all …]
DTCKOffsetDateTime.java1193 OffsetDateTime odt = OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE);
1194 ZonedDateTime zdt = odt.plusSeconds(3).toZonedDateTime();
1195 assertEquals(odt.until(zdt, SECONDS), 3);
1200 OffsetDateTime odt = OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE);
1201 odt.until(Instant.ofEpochSecond(12), SECONDS);
/libcore/ojluni/src/main/java/java/time/
DZonedDateTime.java1231 OffsetDateTime odt = (OffsetDateTime) adjuster; in with() local
1232 return ofLocal(odt.toLocalDateTime(), zone, odt.getOffset()); in with()
/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() local
471 odt = odt.withDayOfYear(1).plusYears(1).with(LocalTime.MIDNIGHT); in test_London_previousTransition_rulesBased()
472 assertEquals(test.previousTransition(odt.toInstant()), last); in test_London_previousTransition_rulesBased()