/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/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/ |
D | TCKZonedDateTime.java | 1056 LocalDateTime ldt = LocalDateTime.of(2008, 6, 30, 23, 30, 59, 0); 1057 ZonedDateTime base = ZonedDateTime.of(ldt, ZONE_0100); 1064 LocalDateTime ldt = LocalDateTime.of(2008, 6, 30, 23, 30, 59, 0); 1065 ZonedDateTime base = ZonedDateTime.of(ldt, ZONE_0100); 1072 LocalDateTime ldt = LocalDateTime.of(2008, 11, 2, 1, 30, 59, 0); // overlap 1073 ZonedDateTime base = ZonedDateTime.of(ldt, ZoneId.of("UTC-04:00") ); 1081 LocalDateTime ldt = LocalDateTime.of(2008, 11, 2, 1, 30, 59, 0); // overlap 1082 ZonedDateTime base = ZonedDateTime.of(ldt, ZoneId.of("UTC-05:00") ); 1090 LocalDateTime ldt = LocalDateTime.of(2008, 6, 30, 23, 30, 59, 0); 1091 ZonedDateTime base = ZonedDateTime.of(ldt, ZONE_0100); [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKOffsetPrinterParser.java | 234 …public void test_print(String offsetPattern, String noOffset, LocalDateTime ldt, ZoneId zone, Stri… in test_print() argument 235 ZonedDateTime zdt = ldt.atZone(zone); in test_print() 243 …public void test_print_pattern_X(String offsetPattern, String noOffset, LocalDateTime ldt, ZoneId … in test_print_pattern_X() argument 257 ZonedDateTime zdt = ldt.atZone(zone); in test_print_pattern_X() 265 …public void test_print_pattern_x(String offsetPattern, String noOffset, LocalDateTime ldt, ZoneId … in test_print_pattern_x() argument 285 ZonedDateTime zdt = ldt.atZone(zone); in test_print_pattern_x() 293 …public void test_print_pattern_Z(String offsetPattern, String noOffset, LocalDateTime ldt, ZoneId … in test_print_pattern_Z() argument 296 ZonedDateTime zdt = ldt.atZone(zone); in test_print_pattern_Z() 309 ZonedDateTime zdt = ldt.atZone(zone); in test_print_pattern_Z() 317 …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 | TCKDateTimeParseResolver.java | 988 LocalDate ldt = LocalDate.of(2010, 6, 30); in test_fieldResolvesToChronoLocalDate_noOverrideChrono_matches() local 989 …DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(new ResolvingField(ldt)).toFormat… in test_fieldResolvesToChronoLocalDate_noOverrideChrono_matches() 1025 LocalDateTime ldt = LocalDateTime.of(2010, 6, 30, 12, 30); in test_fieldResolvesToChronoLocalDateTime_noOverrideChrono_matches() local 1026 …DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(new ResolvingField(ldt)).toFormat… in test_fieldResolvesToChronoLocalDateTime_noOverrideChrono_matches()
|
/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/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 | 174 …LocalDateTime ldt = LocalDateTime.ofEpochSecond(instant.getEpochSecond(), instant.getNano(), offse… in ofInstant() local 175 ChronoLocalDateTimeImpl<?> cldt = (ChronoLocalDateTimeImpl<?>)chrono.localDateTime(ldt); in ofInstant()
|
/libcore/ojluni/src/main/java/java/time/ |
D | LocalDate.java | 1809 LocalDateTime ldt = atTime(LocalTime.MIDNIGHT); in atStartOfDay() local 1812 ZoneOffsetTransition trans = rules.getTransition(ldt); in atStartOfDay() 1814 ldt = trans.getDateTimeAfter(); in atStartOfDay() 1817 return ZonedDateTime.of(ldt, zone); in atStartOfDay()
|
D | OffsetDateTime.java | 322 …LocalDateTime ldt = LocalDateTime.ofEpochSecond(instant.getEpochSecond(), instant.getNano(), offse… in ofInstant() local 323 return new OffsetDateTime(ldt, offset); in ofInstant()
|
D | ZonedDateTime.java | 450 LocalDateTime ldt = LocalDateTime.ofEpochSecond(epochSecond, nanoOfSecond, offset); in create() local 451 return new ZonedDateTime(ldt, offset, zone); in create()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatterBuilder.java | 3202 … LocalDateTime ldt = LocalDateTime.ofEpochSecond(lo - SECONDS_0000_TO_1970, 0, ZoneOffset.UTC); in format() local 3206 buf.append(ldt); in format() 3207 if (ldt.getSecond() == 0) { in format() 3215 … LocalDateTime ldt = LocalDateTime.ofEpochSecond(lo - SECONDS_0000_TO_1970, 0, ZoneOffset.UTC); in format() local 3217 buf.append(ldt); in format() 3218 if (ldt.getSecond() == 0) { in format() 3222 if (ldt.getYear() == -10_000) { in format() 3288 … LocalDateTime ldt = LocalDateTime.of(year, month, day, hour, min, sec, 0).plusDays(days); in parse() local 3289 instantSecs = ldt.toEpochSecond(ZoneOffset.UTC); in parse()
|