/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoField.java | 70 import static java.time.temporal.ChronoUnit.DAYS; 138 NANO_OF_DAY("NanoOfDay", NANOS, DAYS, ValueRange.of(0, 86400L * 1000_000_000L - 1)), 177 MICRO_OF_DAY("MicroOfDay", MICROS, DAYS, ValueRange.of(0, 86400L * 1000_000L - 1)), 216 MILLI_OF_DAY("MilliOfDay", MILLIS, DAYS, ValueRange.of(0, 86400L * 1000L - 1)), 238 SECOND_OF_DAY("SecondOfDay", SECONDS, DAYS, ValueRange.of(0, 86400L - 1)), 259 MINUTE_OF_DAY("MinuteOfDay", MINUTES, DAYS, ValueRange.of(0, (24 * 60) - 1)), 302 HOUR_OF_DAY("HourOfDay", HOURS, DAYS, ValueRange.of(0, 23), "hour"), 316 CLOCK_HOUR_OF_DAY("ClockHourOfDay", HOURS, DAYS, ValueRange.of(1, 24)), 329 AMPM_OF_DAY("AmPmOfDay", HALF_DAYS, DAYS, ValueRange.of(0, 1), "dayperiod"), 345 DAY_OF_WEEK("DayOfWeek", DAYS, WEEKS, ValueRange.of(1, 7), "weekday"), [all …]
|
D | TemporalAdjusters.java | 67 import static java.time.temporal.ChronoUnit.DAYS; 355 return temp.plus(dowDiff, DAYS); in dayOfWeekInMonth() 364 return temp.plus(daysDiff, DAYS); in dayOfWeekInMonth() 391 return temporal.plus(daysDiff >= 0 ? 7 - daysDiff : -daysDiff, DAYS); 420 return temporal.plus(daysDiff >= 0 ? 7 - daysDiff : -daysDiff, DAYS); 445 return temporal.minus(daysDiff >= 0 ? 7 - daysDiff : -daysDiff, DAYS); 474 return temporal.minus(daysDiff >= 0 ? 7 - daysDiff : -daysDiff, DAYS);
|
D | ChronoUnit.java | 125 DAYS("Days", Duration.ofSeconds(86400)), enumConstant 227 return this.compareTo(DAYS) >= 0; in isDurationEstimated() 241 return this.compareTo(DAYS) >= 0 && this != FOREVER; in isDateBased() 254 return this.compareTo(DAYS) < 0; in isTimeBased()
|
D | JulianFields.java | 65 import static java.time.temporal.ChronoUnit.DAYS; 215 JULIAN_DAY("JulianDay", DAYS, FOREVER, JULIAN_DAY_OFFSET), 216 MODIFIED_JULIAN_DAY("ModifiedJulianDay", DAYS, FOREVER, 40587L), 217 RATA_DIE("RataDie", DAYS, FOREVER, 719163L);
|
D | WeekFields.java | 73 import static java.time.temporal.ChronoUnit.DAYS; 675 return new ComputedDayOfField("DayOfWeek", weekDef, DAYS, WEEKS, DAY_OF_WEEK_RANGE); in ofDayOfWeekField() 735 return date.plus(days, DAYS); in ofWeekBasedYear() 845 date = date.minus(doy, DAYS); // Back down into previous year in localizedWeekOfWeekBasedYear() 963 date = date.plus(Math.addExact(Math.multiplyExact(weeks, 7), days), DAYS); in resolveWoM() 970 date = date.plus(weeks * 7 + days, DAYS); in resolveWoM() 988 date = date.plus(Math.addExact(Math.multiplyExact(weeks, 7), days), DAYS); in resolveWoY() 993 date = date.plus(weeks * 7 + days, DAYS); in resolveWoY() 1136 date = date.minus(doy + 7, DAYS); // Back down into previous year in rangeWeekOfWeekBasedYear() 1147 date = date.plus(yearLen - doy + 1 + 7, ChronoUnit.DAYS); in rangeWeekOfWeekBasedYear()
|
/libcore/ojluni/src/test/java/nio/file/attribute/ |
D | FileTimeTest.java | 50 long tomorrowInDays = TimeUnit.DAYS.convert(now, MILLISECONDS) + 1; in main() 51 long yesterdayInDays = TimeUnit.DAYS.convert(now, MILLISECONDS) - 1; in main() 72 cmp(tomorrowInDays, DAYS, now, MILLISECONDS, 1); in main() 73 cmp(now, MILLISECONDS, tomorrowInDays, DAYS, -1); in main() 74 cmp(yesterdayInDays, DAYS, now, MILLISECONDS, -1); in main() 75 cmp(now, MILLISECONDS, yesterdayInDays, DAYS, 1); in main() 76 cmp(yesterdayInDays, DAYS, now, MILLISECONDS, -1); in main() 78 cmp(Long.MAX_VALUE, DAYS, Long.MAX_VALUE, NANOSECONDS, 1); in main() 79 cmp(Long.MAX_VALUE, DAYS, Long.MIN_VALUE, NANOSECONDS, 1); in main() 80 cmp(Long.MIN_VALUE, DAYS, Long.MIN_VALUE, NANOSECONDS, -1); in main() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | TimeUnitTest.java | 11 import static java.util.concurrent.TimeUnit.DAYS; 44 SECONDS.convert(t, DAYS)); in testConvert() 59 MILLISECONDS.convert(t, DAYS)); in testConvert() 74 MICROSECONDS.convert(t, DAYS)); in testConvert() 89 NANOSECONDS.convert(t, DAYS)); in testConvert() 112 DAYS.toNanos(t)); in testToNanos() 135 DAYS.toMicros(t)); in testToMicros() 158 DAYS.toMillis(t)); in testToMillis() 181 DAYS.toSeconds(t)); in testToSeconds() 204 DAYS.toMinutes(t)); in testToMinutes() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKChronoField.java | 87 import static java.time.temporal.ChronoUnit.DAYS; 127 {DAY_OF_MONTH, DAYS, MONTHS}, in data_fieldUnit() 128 {DAY_OF_WEEK, DAYS, WEEKS}, in data_fieldUnit() 129 {DAY_OF_YEAR, DAYS, YEARS}, in data_fieldUnit() 130 {HOUR_OF_DAY, HOURS, DAYS}, in data_fieldUnit() 131 {MINUTE_OF_DAY, MINUTES, DAYS}, in data_fieldUnit() 133 {SECOND_OF_DAY, SECONDS, DAYS}, in data_fieldUnit() 135 {MILLI_OF_DAY, MILLIS, DAYS}, in data_fieldUnit() 138 {MICRO_OF_DAY, MICROS, DAYS}, in data_fieldUnit() 140 {NANO_OF_DAY, NANOS, DAYS}, in data_fieldUnit()
|
D | TCKChronoUnit.java | 60 import static java.time.temporal.ChronoUnit.DAYS; 109 {DAYS, true, false, true}, in data_chronoUnit() 140 {DAYS, LocalDate.of(2000, 1, 10), true, 1, LocalDate.of(2000, 1, 11)}, in data_unitAndTemporal() 155 {DAYS, LocalTime.of(1, 2, 3, 400), false, 1, null}, in data_unitAndTemporal()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | StampedLockTest.java | 36 import static java.util.concurrent.TimeUnit.DAYS; 106 lockers.add(() -> lock.tryLock(Long.MIN_VALUE, DAYS)); in lockLockers() 107 lockers.add(() -> lock.tryLock(0L, DAYS)); in lockLockers() 108 lockers.add(() -> lock.tryLock(Long.MAX_VALUE, DAYS)); in lockLockers() 117 readLockers.add(sl -> tryReadLockUninterrupted(sl, Long.MIN_VALUE, DAYS)); in readLockers() 118 readLockers.add(sl -> tryReadLockUninterrupted(sl, 0L, DAYS)); in readLockers() 138 writeLockers.add(sl -> tryWriteLockUninterrupted(sl, Long.MIN_VALUE, DAYS)); in writeLockers() 139 writeLockers.add(sl -> tryWriteLockUninterrupted(sl, 0L, DAYS)); in writeLockers() 307 () -> lock.tryWriteLock(Long.MIN_VALUE, DAYS), in testInterruptibleOperationsThrowInterruptedExceptionWhenPreInterrupted() 308 () -> lock.tryWriteLock(Long.MAX_VALUE, DAYS), in testInterruptibleOperationsThrowInterruptedExceptionWhenPreInterrupted() [all …]
|
D | TimeUnitTest.java | 37 import static java.util.concurrent.TimeUnit.DAYS; 68 SECONDS.convert(t, DAYS)); in testConvert() 83 MILLISECONDS.convert(t, DAYS)); in testConvert() 98 MICROSECONDS.convert(t, DAYS)); in testConvert() 113 NANOSECONDS.convert(t, DAYS)); in testConvert() 145 DAYS.toNanos(t)); in testToNanos() 168 DAYS.toMicros(t)); in testToMicros() 191 DAYS.toMillis(t)); in testToMillis() 214 DAYS.toSeconds(t)); in testToSeconds() 237 DAYS.toMinutes(t)); in testToMinutes() [all …]
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | HijrahDateTest.java | 94 assertEquals(0, hijrahNow.until(isoNow, ChronoUnit.DAYS)); in until_isoDates() 95 assertEquals(0, hijrahNow.until(isoNow.atTime(10, 10), ChronoUnit.DAYS)); in until_isoDates() 104 assertEquals(-1, hijrahTomorrow.until(hijrahNow, ChronoUnit.DAYS)); in until_hijrahDates() 129 hijrahNow.until(Instant.ofEpochSecond(1622113481L), ChronoUnit.DAYS); in until_isoDates_unsupportedTypes()
|
D | JapaneseDateTest.java | 54 assertEquals(JapaneseDate.of(REIWA, 3, 5, 20), date.minus(1, ChronoUnit.DAYS)); in minus_days() 61 assertEquals(JapaneseDate.of(REIWA, 3, 5, 22), date.minus(-1, ChronoUnit.DAYS)); in minus_negative_days() 68 assertEquals(JapaneseDate.of(HEISEI, 31, 4, 30), date.minus(1, ChronoUnit.DAYS)); in minus_days_crossEras()
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestChronoUnit.java | 66 import static java.time.temporal.ChronoUnit.DAYS; 292 assertEquals(DAYS.between(start, end), expected); in test_daysBetween() 297 assertEquals(DAYS.between(end, start), -expected); in test_daysBetweenReversed() 302 assertEquals(DAYS.between(start.atTime(12, 30), end.atTime(12, 30)), expected); in test_daysBetween_LocalDateTimeSameTime() 308 assertEquals(DAYS.between(start.atTime(12, 30), end.atTime(12, 31)), expected); in test_daysBetween_LocalDateTimeLaterTime() 310 assertEquals(DAYS.between(start.atTime(12, 30), end.atTime(12, 29)), expected); in test_daysBetween_LocalDateTimeLaterTime() 316 …assertEquals(DAYS.between(start.atStartOfDay(ZoneOffset.ofHours(2)), end.atStartOfDay(ZoneOffset.o… in test_daysBetween_ZonedDateSameOffset() 323 …assertEquals(DAYS.between(start.atStartOfDay(ZoneOffset.ofHours(2)), end.atStartOfDay(ZoneOffset.o… in test_daysBetween_ZonedDateLaterOffset() 325 …assertEquals(DAYS.between(start.atStartOfDay(ZoneOffset.ofHours(1)), end.atStartOfDay(ZoneOffset.o… in test_daysBetween_ZonedDateLaterOffset()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestChronoLocalDate.java | 93 dates.add(date.minus(1, ChronoUnit.DAYS)); in test_date_comparator_checkGenerics_ISO() 95 dates.add(date.plus(1, ChronoUnit.DAYS)); in test_date_comparator_checkGenerics_ISO() 117 dates.add(date.minus(1, ChronoUnit.DAYS)); 119 dates.add(date.plus(1, ChronoUnit.DAYS)); 174 return (D) date.plus(1, ChronoUnit.DAYS);
|
D | TestExampleCode.java | 110 .minus(1, ChronoUnit.DAYS); in test_chronoPackageExample() 163 .minus(1, ChronoUnit.DAYS); in test_calendarPackageExample() 204 return (D) date.plus(1, ChronoUnit.DAYS); in next() 216 return (ChronoLocalDateTime<D>) date.plus(1, ChronoUnit.DAYS).atTime(LocalTime.of(12, 0)); in tomorrowNoon()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoPeriodImpl.java | 60 import static java.time.temporal.ChronoUnit.DAYS; 109 Collections.unmodifiableList(Arrays.<TemporalUnit>asList(YEARS, MONTHS, DAYS)); 146 } else if (unit == ChronoUnit.DAYS) { in get() 276 temporal = temporal.plus(days, DAYS); in addTo() 302 temporal = temporal.minus(days, DAYS); in subtractFrom()
|
D | AbstractChronology.java | 77 import static java.time.temporal.ChronoUnit.DAYS; 556 return date(y, 1, 1).plus(months, MONTHS).plus(days, DAYS); in resolveYMD() 575 return dateYearDay(y, 1).plus(days, DAYS); in resolveYD() 587 return date(y, 1, 1).plus(months, MONTHS).plus(weeks, WEEKS).plus(days, DAYS); in resolveYMAA() 592 ChronoLocalDate date = date(y, moy, 1).plus((aw - 1) * 7 + (ad - 1), DAYS); in resolveYMAA() 610 …ChronoLocalDate date = date(y, moy, 1).plus((aw - 1) * 7, DAYS).with(nextOrSame(DayOfWeek.of(dow))… in resolveYMAD() 622 return dateYearDay(y, 1).plus(weeks, WEEKS).plus(days, DAYS); in resolveYAA() 626 ChronoLocalDate date = dateYearDay(y, 1).plus((aw - 1) * 7 + (ad - 1), DAYS); in resolveYAA() 642 …ChronoLocalDate date = dateYearDay(y, 1).plus((aw - 1) * 7, DAYS).with(nextOrSame(DayOfWeek.of(dow… in resolveYAD()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKChronoPeriod.java | 59 import static java.time.temporal.ChronoUnit.DAYS; 123 assertEquals(period.get(DAYS), 3); in test_get() 138 assertEquals(period.getUnits().get(2), DAYS); in test_getUnits() 205 assertEquals(result, date.plus(14, MONTHS).plus(3, DAYS)); in test_addTo() 223 assertEquals(result, date.minus(14, MONTHS).minus(3, DAYS)); in test_subtractFrom()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKChronoUnitSerialization.java | 60 import static java.time.temporal.ChronoUnit.DAYS; 104 {DAYS}, in data_chronoUnit()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Period.java | 64 import static java.time.temporal.ChronoUnit.DAYS; 150 Collections.unmodifiableList(Arrays.<TemporalUnit>asList(YEARS, MONTHS, DAYS)); 273 } else if (unit == ChronoUnit.DAYS) { in from() 431 } else if (unit == ChronoUnit.DAYS) { in get() 900 temporal = temporal.plus(days, DAYS); in addTo() 953 temporal = temporal.minus(days, DAYS); in subtractFrom()
|
D | DayOfWeek.java | 65 import static java.time.temporal.ChronoUnit.DAYS; 408 return (R) DAYS; in query()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | MockSimplePeriod.java | 62 import static java.time.temporal.ChronoUnit.DAYS; 82 public static final MockSimplePeriod ZERO_DAYS = new MockSimplePeriod(0, DAYS);
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | MockSimplePeriod.java | 62 import static java.time.temporal.ChronoUnit.DAYS; 82 public static final MockSimplePeriod ZERO_DAYS = new MockSimplePeriod(0, DAYS);
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | Duration.java | 160 boolean daySet = isSet(DatatypeConstants.DAYS); in getXMLSchemaType() 256 return getFieldValueAsInt(DatatypeConstants.DAYS); in getDays() 902 BigInteger days = (BigInteger) getField(DatatypeConstants.DAYS); in toString()
|