/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeTextPrinting.java | 141 LocalDateTime dt = LocalDateTime.of(2010, 1, 1, 0, 0); in test_appendText2arg_format() local 142 dt = dt.with(field, value); in test_appendText2arg_format() 143 String text = f.format(dt); in test_appendText2arg_format() 151 LocalDateTime dt = LocalDateTime.of(2010, 1, 1, 0, 0); in test_appendText1arg_format() local 152 dt = dt.with(field, value); in test_appendText1arg_format() 153 String text = f.format(dt); in test_appendText1arg_format() 176 LocalDateTime dt = LocalDateTime.of(2010, 1, 1, 0, 0); in test_appendTextMap() local 178 assertEquals(f.format(dt.with(month)), map.get((long) month.getValue())); in test_appendTextMap() 190 LocalDateTime dt = LocalDateTime.of(2010, 1, 1, 0, 0); in test_appendTextMap_DOM() local 191 assertEquals(f.format(dt.withDayOfMonth(1)), "1st"); in test_appendTextMap_DOM() [all …]
|
D | TCKDateTimeFormatters.java | 1418 void setFields(LocalDate dt) { in setFields() argument 1419 if (dt != null) { in setFields() 1420 fields.put(YEAR, (long) dt.getYear()); in setFields() 1421 fields.put(MONTH_OF_YEAR, (long) dt.getMonthValue()); in setFields() 1422 fields.put(DAY_OF_MONTH, (long) dt.getDayOfMonth()); in setFields() 1423 fields.put(DAY_OF_YEAR, (long) dt.getDayOfYear()); in setFields() 1424 fields.put(DAY_OF_WEEK, (long) dt.getDayOfWeek().getValue()); in setFields() 1425 fields.put(IsoFields.WEEK_BASED_YEAR, dt.getLong(IsoFields.WEEK_BASED_YEAR)); in setFields() 1426 … fields.put(IsoFields.WEEK_OF_WEEK_BASED_YEAR, dt.getLong(IsoFields.WEEK_OF_WEEK_BASED_YEAR)); in setFields() 1430 void setFields(LocalDateTime dt) { in setFields() argument [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestOffsetDateTime_instants.java | 286 …OffsetDateTime dt = OffsetDateTime.of(LocalDate.of(1970, 1, 1), LocalTime.of(0, 0, 0, 0), ZoneOffs… in test_toInstant_19700101() local 287 Instant test = dt.toInstant(); in test_toInstant_19700101() 293 …OffsetDateTime dt = OffsetDateTime.of(LocalDate.of(1970, 1, 1), LocalTime.of(0, 0, 0, 1), ZoneOffs… in test_toInstant_19700101_oneNano() local 294 Instant test = dt.toInstant(); in test_toInstant_19700101_oneNano() 300 …OffsetDateTime dt = OffsetDateTime.of(LocalDate.of(1969, 12, 31), LocalTime.of(23, 59, 59, 9999999… in test_toInstant_19700101_minusOneNano() local 301 Instant test = dt.toInstant(); in test_toInstant_19700101_minusOneNano() 307 …OffsetDateTime dt = OffsetDateTime.of(LocalDate.of(1970, 1, 2), LocalTime.of(0, 0, 0, 0), ZoneOffs… in test_toInstant_19700102() local 308 Instant test = dt.toInstant(); in test_toInstant_19700102() 314 …OffsetDateTime dt = OffsetDateTime.of(LocalDate.of(1969, 12, 31), LocalTime.of(0, 0, 0, 0), ZoneOf… in test_toInstant_19691231() local 315 Instant test = dt.toInstant(); in test_toInstant_19691231() [all …]
|
D | TestLocalDateTime.java | 494 LocalDateTime dt = LocalDateTime.of(d, LocalTime.MIDNIGHT); in test_getDate() local 495 assertSame(dt.toLocalDate(), d); in test_getDate() 504 LocalDateTime dt = LocalDateTime.of(LocalDate.of(2011, 7, 30), t); in test_getTime() local 505 assertSame(dt.toLocalTime(), t); in test_getTime()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalDateTime.java | 1783 LocalDateTime dt = base.plusHours(i); 1790 assertEquals(dt.toLocalDate(), d); 1791 assertEquals(dt.toLocalTime(), t); 1802 LocalDateTime dt = base.plusHours(i); 1810 assertEquals(dt.toLocalDate(), d); 1811 assertEquals(dt.toLocalTime(), t); 1847 LocalDateTime dt = base.plusMinutes(i); 1854 assertEquals(dt.toLocalDate(), d, String.valueOf(i)); 1855 assertEquals(dt.toLocalTime(), t, String.valueOf(i)); 2472 LocalDateTime dt = base.minusHours(i); [all …]
|
D | TCKZonedDateTime.java | 2123 ZonedDateTime dt = ldt.atZone(ZoneOffset.UTC); 2124 Instant test = dt.toInstant(); 2131 ZonedDateTime dt = ldt.atZone(ZONE_0100); 2132 Instant test = dt.toInstant(); 2139 ZonedDateTime dt = ldt.atZone(ZONE_M0100); 2140 Instant test = dt.toInstant(); 2170 ZonedDateTime dt = ldt.atZone(ZoneOffset.UTC); 2171 assertEquals(dt.toEpochSecond(), expectedEpSec); 2176 ZonedDateTime dt = ldt.atZone(ZONE_0100); 2177 assertEquals(dt.toEpochSecond(), expectedEpSec - 3600); [all …]
|
D | TCKOffsetDateTime.java | 387 … LocalDateTime dt = LocalDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 10, 500)); 388 OffsetDateTime test = OffsetDateTime.of(dt, OFFSET_PONE); 399 … LocalDateTime dt = LocalDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 10, 500)); 400 OffsetDateTime.of(dt, (ZoneOffset) null);
|
/libcore/ojluni/src/main/java/java/time/zone/ |
D | ZoneRules.java | 634 private Object getOffsetInfo(LocalDateTime dt) { in getOffsetInfo() argument 640 dt.isAfter(savingsLocalTransitions[savingsLocalTransitions.length - 1])) { in getOffsetInfo() 641 ZoneOffsetTransition[] transArray = findTransitionArray(dt.getYear()); in getOffsetInfo() 644 info = findOffsetInfo(dt, trans); in getOffsetInfo() 653 int index = Arrays.binarySearch(savingsLocalTransitions, dt); in getOffsetInfo() 692 private Object findOffsetInfo(LocalDateTime dt, ZoneOffsetTransition trans) { in findOffsetInfo() argument 695 if (dt.isBefore(localTransition)) { in findOffsetInfo() 698 if (dt.isBefore(trans.getDateTimeAfter())) { in findOffsetInfo() 704 if (dt.isBefore(localTransition) == false) { in findOffsetInfo() 707 if (dt.isBefore(trans.getDateTimeAfter())) { in findOffsetInfo()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertPathValidator1Test.java | 105 String dt = CertPathValidator.getDefaultType(); in testCertPathValidator01() local 110 assertNotNull("Default type have not be null", dt); in testCertPathValidator01() 111 assertEquals("Incorrect default type", dt, resType); in testCertPathValidator01() 115 dt = CertPathValidator.getDefaultType(); in testCertPathValidator01() 118 assertNotNull("Default type have not be null", dt); in testCertPathValidator01() 119 assertEquals("Incorrect default type", dt, resType); in testCertPathValidator01()
|
D | CertStore1Test.java | 134 String dt = CertStore.getDefaultType(); in testCertStore01() local 140 assertNotNull("Default type have not be null", dt); in testCertStore01() 141 assertEquals("Incorrect default type", dt, sn); in testCertStore01() 144 dt = CertStore.getDefaultType(); in testCertStore01() 145 assertEquals("Incorrect default type", dt, def); in testCertStore01()
|
D | CertPathValidator2Test.java | 82 String dt = CertPathValidator.getDefaultType(); in checkResult() local 89 Security.setProperty(propName, dt); in checkResult() 90 assertEquals("Incorrect default type", CertPathValidator.getDefaultType(), dt); in checkResult()
|
/libcore/ojluni/src/test/java/time/test/java/util/ |
D | TestFormatter.java | 158 String expected, Object dt) { in test() argument 160 new StringBuilder(), locale).format(fmtStr, dt).out().toString(); in test() 162 System.out.printf("%-24s : %s%n", getClassName(dt), out); in test() 166 getClassName(dt), out, expected); in test()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestChronoLocalDate.java | 199 …private <D extends ChronoLocalDate> ChronoLocalDateTime<D> processCLDT(ChronoLocalDateTime<D> dt) { 200 return dt;
|
/libcore/ojluni/src/main/java/java/time/ |
D | OffsetDateTime.java | 256 LocalDateTime dt = LocalDateTime.of(date, time); in of() local 257 return new OffsetDateTime(dt, offset); in of() 300 … LocalDateTime dt = LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond); in of() local 301 return new OffsetDateTime(dt, offset); in of()
|
D | ZonedDateTime.java | 333 … LocalDateTime dt = LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond); in of() local 334 return ofLocal(dt, zone, null); in of()
|
/libcore/ojluni/src/main/java/java/util/prefs/ |
D | XmlSupport.java | 241 DocumentType dt = di.createDocumentType(qname, null, PREFS_DTD_URI); in createPrefsDoc() local 242 return di.createDocument(null, qname, dt); in createPrefsDoc()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Formatter.java | 2707 private boolean dt = false; field in Formatter.FormatSpecifier 2780 if (!dt) { in conversion() 2807 dt = true; in FormatSpecifier() 2814 if (dt) in FormatSpecifier() 2831 if (dt) { in print() 3036 if (dt) in toString()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatterBuilder.java | 3751 TemporalAccessor dt = context.getTemporal(); in format() local 3753 dt.isSupported(ChronoField.INSTANT_SECONDS) in format() 3754 … ? (zone.getRules().isDaylightSavings(Instant.from(dt)) ? DST : STD) in format()
|