/libcore/ojluni/src/test/java/util/zip/ |
D | TestLocalTime.java | 42 LocalDateTime ldt = LocalDateTime.now(); in main() local 43 test(ldt); // now in main() 44 test(ldt.withYear(1968)); in main() 45 test(ldt.withYear(1970)); in main() 46 test(ldt.withYear(1982)); in main() 47 test(ldt.withYear(2037)); in main() 48 test(ldt.withYear(2100)); in main() 49 test(ldt.withYear(2106)); in main() 54 testWithTZ(tz, ldt.withYear(1982)); in main() 55 testWithTZ(tz, ldt.withYear(2037)); in main() [all …]
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipUtils.java | 99 LocalDateTime ldt = LocalDateTime.of(year, month, day, hour, minute, second); in dosToJavaTime() local 100 return TimeUnit.MILLISECONDS.convert(ldt.toEpochSecond( in dosToJavaTime() 101 ZoneId.systemDefault().getRules().getOffset(ldt)), TimeUnit.SECONDS); in dosToJavaTime() 134 private static long javaToDosTime(LocalDateTime ldt) { in javaToDosTime() argument 135 int year = ldt.getYear() - 1980; in javaToDosTime() 137 ldt.getMonthValue() << 21 | in javaToDosTime() 138 ldt.getDayOfMonth() << 16 | in javaToDosTime() 139 ldt.getHour() << 11 | in javaToDosTime() 140 ldt.getMinute() << 5 | in javaToDosTime() 141 ldt.getSecond() >> 1) & 0xffffffffL; in javaToDosTime() [all …]
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
D | FileTime.java | 421 LocalDateTime ldt; in toString() local 428 ldt = LocalDateTime.ofEpochSecond(lo - SECONDS_0000_TO_1970, nanos, ZoneOffset.UTC); in toString() 429 year = ldt.getYear() + (int)hi * 10000; in toString() 435 ldt = LocalDateTime.ofEpochSecond(lo - SECONDS_0000_TO_1970, nanos, ZoneOffset.UTC); in toString() 436 year = ldt.getYear() + (int)hi * 10000; in toString() 441 int fraction = ldt.getNano(); in toString() 451 append(sb, 10, ldt.getMonthValue()); in toString() 453 append(sb, 10, ldt.getDayOfMonth()); in toString() 455 append(sb, 10, ldt.getHour()); in toString() 457 append(sb, 10, ldt.getMinute()); in toString() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKZonedDateTime.java | 1051 LocalDateTime ldt = LocalDateTime.of(2008, 6, 30, 23, 30, 59, 0); 1052 ZonedDateTime base = ZonedDateTime.of(ldt, ZONE_0100); 1059 LocalDateTime ldt = LocalDateTime.of(2008, 6, 30, 23, 30, 59, 0); 1060 ZonedDateTime base = ZonedDateTime.of(ldt, ZONE_0100); 1067 LocalDateTime ldt = LocalDateTime.of(2008, 11, 2, 1, 30, 59, 0); // overlap 1068 ZonedDateTime base = ZonedDateTime.of(ldt, ZoneId.of("UTC-04:00") ); 1076 LocalDateTime ldt = LocalDateTime.of(2008, 11, 2, 1, 30, 59, 0); // overlap 1077 ZonedDateTime base = ZonedDateTime.of(ldt, ZoneId.of("UTC-05:00") ); 1085 LocalDateTime ldt = LocalDateTime.of(2008, 6, 30, 23, 30, 59, 0); 1086 ZonedDateTime base = ZonedDateTime.of(ldt, ZONE_0100); [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/serial/ |
D | TCKZoneOffsetTransitionSerialization.java | 85 LocalDateTime ldt = LocalDateTime.of(Year.MAX_VALUE, 12, 31, 1, 31, 53); in test_serialization_unusual1() local 86 …ZoneOffsetTransition test = ZoneOffsetTransition.of(ldt, ZoneOffset.of("+02:04:56"), ZoneOffset.of… in test_serialization_unusual1() 92 LocalDateTime ldt = LocalDateTime.of(Year.MIN_VALUE, 1, 1, 12, 1, 3); in test_serialization_unusual2() local 93 …ZoneOffsetTransition test = ZoneOffsetTransition.of(ldt, ZoneOffset.of("+02:04:56"), ZoneOffset.of… in test_serialization_unusual2()
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKZoneOffsetTransition.java | 153 LocalDateTime ldt = LocalDateTime.of(2010, 3, 31, 1, 0); in test_isValidOffset_gap() local 154 ZoneOffsetTransition test = ZoneOffsetTransition.of(ldt, OFFSET_0200, OFFSET_0300); in test_isValidOffset_gap() 164 LocalDateTime ldt = LocalDateTime.of(2010, 10, 31, 1, 0); in test_isValidOffset_overlap() local 165 ZoneOffsetTransition test = ZoneOffsetTransition.of(ldt, OFFSET_0300, OFFSET_0200); in test_isValidOffset_overlap() 266 LocalDateTime ldt = LocalDateTime.of(2010, 3, 31, 1, 0); in test_toString_gap() local 267 ZoneOffsetTransition test = ZoneOffsetTransition.of(ldt, OFFSET_0200, OFFSET_0300); in test_toString_gap() 273 LocalDateTime ldt = LocalDateTime.of(2010, 10, 31, 1, 0); in test_toString_overlap() local 274 ZoneOffsetTransition test = ZoneOffsetTransition.of(ldt, OFFSET_0300, OFFSET_0200); in test_toString_overlap()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestChronoLocalDate.java | 188 ChronoLocalDateTime<?> ldt = chrono.localDateTime(now); 189 ldt = processCLDT(ldt); 195 ChronoLocalDateTime<? extends ChronoLocalDate> ldt = chrono.localDateTime(now); 196 ldt = processCLDT(ldt);
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKOffsetPrinterParser.java | 473 …public void test_print(String offsetPattern, String noOffset, LocalDateTime ldt, ZoneId zone, Stri… in test_print() argument 474 ZonedDateTime zdt = ldt.atZone(zone); in test_print() 482 …public void test_print_pattern_X(String offsetPattern, String noOffset, LocalDateTime ldt, ZoneId … in test_print_pattern_X() argument 496 ZonedDateTime zdt = ldt.atZone(zone); in test_print_pattern_X() 504 …public void test_print_pattern_x(String offsetPattern, String noOffset, LocalDateTime ldt, ZoneId … in test_print_pattern_x() argument 524 ZonedDateTime zdt = ldt.atZone(zone); in test_print_pattern_x() 532 …public void test_print_pattern_Z(String offsetPattern, String noOffset, LocalDateTime ldt, ZoneId … in test_print_pattern_Z() argument 535 ZonedDateTime zdt = ldt.atZone(zone); in test_print_pattern_Z() 548 ZonedDateTime zdt = ldt.atZone(zone); in test_print_pattern_Z() 556 …public void test_print_localized(TextStyle style, LocalDateTime ldt, ZoneOffset offset, String exp… in test_print_localized() argument [all …]
|
D | TCKZoneIdPrinterParser.java | 115 public void test_print(LocalDateTime ldt, ZoneId zone, String expected) { in test_print() argument 116 ZonedDateTime zdt = ldt.atZone(zone); in test_print() 123 public void test_print_pattern_VV(LocalDateTime ldt, ZoneId zone, String expected) { in test_print_pattern_VV() argument 124 ZonedDateTime zdt = ldt.atZone(zone); in test_print_pattern_VV()
|
D | TCKDateTimeFormatter.java | 281 LocalDateTime ldt = LocalDateTime.of(2008, 6, 30, 11, 30); in data_format_withZone_withChronology() local 292 {null, null, ldt, "2008:11:::ISO"}, in data_format_withZone_withChronology() 302 {IsoChronology.INSTANCE, null, ldt, "2008:11:::ISO"}, in data_format_withZone_withChronology() 312 {null, ZONE_PARIS, ldt, "2008:11::Europe/Paris:ISO"}, in data_format_withZone_withChronology() 322 {null, OFFSET_PTHREE, ldt, "2008:11::+03:00:ISO"}, in data_format_withZone_withChronology() 332 {ThaiBuddhistChronology.INSTANCE, null, ldt, "2551:11:::ThaiBuddhist"}, in data_format_withZone_withChronology() 342 … {ThaiBuddhistChronology.INSTANCE, ZONE_PARIS, ldt, "2551:11::Europe/Paris:ThaiBuddhist"}, in data_format_withZone_withChronology() 614 LocalDateTime ldt = LocalDateTime.of(2011, 6, 30, 12, 30); in test_parseBest_firstOption() local 615 assertEquals(result, ZonedDateTime.of(ldt, ZoneOffset.ofHours(3))); in test_parseBest_firstOption()
|
D | TCKDTFParsedInstant.java | 172 …public void testWithZoneWithOffset(String zdtString, LocalDateTime ldt, ZoneOffset offset, ZoneId … in testWithZoneWithOffset() argument 174 zdt1 = ZonedDateTime.ofInstant(ldt, offset, zone); in testWithZoneWithOffset()
|
D | TCKDateTimeFormatterBuilder.java | 616 …public void test_appendZoneText_parseGenericTimeZonePatterns(String pattern, LocalDateTime ldt, Zo… in test_appendZoneText_parseGenericTimeZonePatterns() argument 619 ZonedDateTime actual = ZonedDateTime.of(ldt, zId); in test_appendZoneText_parseGenericTimeZonePatterns() 642 …pendZoneText_parseNonGenricTimeZonePatterns_1(String pattern, LocalDateTime ldt, String expected) { in test_appendZoneText_parseNonGenricTimeZonePatterns_1() argument 645 ZonedDateTime zdt = ZonedDateTime.of(ldt, zId); in test_appendZoneText_parseNonGenricTimeZonePatterns_1() 669 …pendZoneText_parseNonGenricTimeZonePatterns_2(String pattern, LocalDateTime ldt, String expected) { in test_appendZoneText_parseNonGenricTimeZonePatterns_2() argument 672 String actual = df.format(ldt); in test_appendZoneText_parseNonGenricTimeZonePatterns_2()
|
D | TCKDateTimeParseResolver.java | 992 LocalDate ldt = LocalDate.of(2010, 6, 30); in test_fieldResolvesToChronoLocalDate_noOverrideChrono_matches() local 993 …DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(new ResolvingField(ldt)).toFormat… in test_fieldResolvesToChronoLocalDate_noOverrideChrono_matches() 1029 LocalDateTime ldt = LocalDateTime.of(2010, 6, 30, 12, 30); in test_fieldResolvesToChronoLocalDateTime_noOverrideChrono_matches() local 1030 …DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(new ResolvingField(ldt)).toFormat… in test_fieldResolvesToChronoLocalDateTime_noOverrideChrono_matches()
|
/libcore/ojluni/src/test/java/time/tck/java/time/serial/ |
D | TCKOffsetDateTimeSerialization.java | 110 LocalDateTime ldt = LocalDateTime.of(2012, 9, 16, 22, 17, 59, 464_000_000); in test_serialization_format() local 111 assertSerializedBySer(OffsetDateTime.of(ldt, ZoneOffset.ofHours(1)), bytes); in test_serialization_format()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoZonedDateTimeImpl.java | 175 …LocalDateTime ldt = LocalDateTime.ofEpochSecond(instant.getEpochSecond(), instant.getNano(), offse… in ofInstant() local 176 ChronoLocalDateTimeImpl<?> cldt = (ChronoLocalDateTimeImpl<?>)chrono.localDateTime(ldt); in ofInstant()
|
/libcore/ojluni/src/test/java/time/test/java/time/zone/ |
D | TestZoneRules.java | 164 …public void test_TransitionBeyondDay(ZoneId zid, LocalDateTime ldt, ZoneOffset before, ZoneOffset … in test_TransitionBeyondDay() argument 165 ZoneOffsetTransition zot = ZoneOffsetTransition.of(ldt, before, after); in test_TransitionBeyondDay()
|
/libcore/ojluni/src/main/java/java/time/ |
D | LocalDate.java | 1934 LocalDateTime ldt = atTime(LocalTime.MIDNIGHT); in atStartOfDay() local 1937 ZoneOffsetTransition trans = rules.getTransition(ldt); in atStartOfDay() 1939 ldt = trans.getDateTimeAfter(); in atStartOfDay() 1942 return ZonedDateTime.of(ldt, zone); in atStartOfDay()
|
D | OffsetDateTime.java | 323 …LocalDateTime ldt = LocalDateTime.ofEpochSecond(instant.getEpochSecond(), instant.getNano(), offse… in ofInstant() local 324 return new OffsetDateTime(ldt, offset); in ofInstant()
|
D | ZonedDateTime.java | 451 LocalDateTime ldt = LocalDateTime.ofEpochSecond(epochSecond, nanoOfSecond, offset); in create() local 452 return new ZonedDateTime(ldt, offset, zone); in create()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatterBuilder.java | 3510 … LocalDateTime ldt = LocalDateTime.ofEpochSecond(lo - SECONDS_0000_TO_1970, 0, ZoneOffset.UTC); in format() local 3514 buf.append(ldt); in format() 3515 if (ldt.getSecond() == 0) { in format() 3523 … LocalDateTime ldt = LocalDateTime.ofEpochSecond(lo - SECONDS_0000_TO_1970, 0, ZoneOffset.UTC); in format() local 3525 buf.append(ldt); in format() 3526 if (ldt.getSecond() == 0) { in format() 3530 if (ldt.getYear() == -10_000) { in format() 3597 … LocalDateTime ldt = LocalDateTime.of(year, month, day, hour, min, sec, 0).plusDays(days); in parse() local 3598 instantSecs = ldt.toEpochSecond(ZoneOffset.ofTotalSeconds(offset)); in parse() 4251 LocalDateTime ldt = date.atTime(time); in format() local [all …]
|