/libcore/ojluni/src/main/java/java/time/temporal/ |
D | TemporalAdjusters.java | 62 package java.time.temporal; 64 import static java.time.temporal.ChronoField.DAY_OF_MONTH; 65 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 66 import static java.time.temporal.ChronoField.DAY_OF_YEAR; 67 import static java.time.temporal.ChronoUnit.DAYS; 68 import static java.time.temporal.ChronoUnit.MONTHS; 69 import static java.time.temporal.ChronoUnit.YEARS; 141 return (temporal) -> { in ofDateAdjuster() 142 LocalDate input = LocalDate.from(temporal); in ofDateAdjuster() 144 return temporal.with(output); in ofDateAdjuster() [all …]
|
D | TemporalQueries.java | 62 package java.time.temporal; 64 import static java.time.temporal.ChronoField.EPOCH_DAY; 65 import static java.time.temporal.ChronoField.NANO_OF_DAY; 66 import static java.time.temporal.ChronoField.OFFSET_SECONDS; 344 static final TemporalQuery<ZoneId> ZONE_ID = (temporal) -> 345 temporal.query(TemporalQueries.ZONE_ID); 350 static final TemporalQuery<Chronology> CHRONO = (temporal) -> 351 temporal.query(TemporalQueries.CHRONO); 356 static final TemporalQuery<TemporalUnit> PRECISION = (temporal) -> 357 temporal.query(TemporalQueries.PRECISION); [all …]
|
D | IsoFields.java | 57 package java.time.temporal; 64 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 65 import static java.time.temporal.ChronoField.DAY_OF_YEAR; 66 import static java.time.temporal.ChronoField.EPOCH_DAY; 67 import static java.time.temporal.ChronoField.MONTH_OF_YEAR; 68 import static java.time.temporal.ChronoField.YEAR; 69 import static java.time.temporal.ChronoUnit.DAYS; 70 import static java.time.temporal.ChronoUnit.FOREVER; 71 import static java.time.temporal.ChronoUnit.MONTHS; 72 import static java.time.temporal.ChronoUnit.WEEKS; [all …]
|
D | WeekFields.java | 62 package java.time.temporal; 68 import static java.time.temporal.ChronoField.DAY_OF_MONTH; 69 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 70 import static java.time.temporal.ChronoField.DAY_OF_YEAR; 71 import static java.time.temporal.ChronoField.MONTH_OF_YEAR; 72 import static java.time.temporal.ChronoField.YEAR; 73 import static java.time.temporal.ChronoUnit.DAYS; 74 import static java.time.temporal.ChronoUnit.FOREVER; 75 import static java.time.temporal.ChronoUnit.MONTHS; 76 import static java.time.temporal.ChronoUnit.WEEKS; [all …]
|
D | TemporalUnit.java | 62 package java.time.temporal; 168 default boolean isSupportedBy(Temporal temporal) { in isSupportedBy() argument 169 if (temporal instanceof LocalTime) { in isSupportedBy() 172 if (temporal instanceof ChronoLocalDate) { in isSupportedBy() 175 if (temporal instanceof ChronoLocalDateTime || temporal instanceof ChronoZonedDateTime) { in isSupportedBy() 179 temporal.plus(1, this); in isSupportedBy() 185 temporal.plus(-1, this); in isSupportedBy() 227 <R extends Temporal> R addTo(R temporal, long amount); in addTo() argument
|
D | ChronoField.java | 57 package java.time.temporal; 70 import static java.time.temporal.ChronoUnit.DAYS; 71 import static java.time.temporal.ChronoUnit.ERAS; 72 import static java.time.temporal.ChronoUnit.FOREVER; 73 import static java.time.temporal.ChronoUnit.HALF_DAYS; 74 import static java.time.temporal.ChronoUnit.HOURS; 75 import static java.time.temporal.ChronoUnit.MICROS; 76 import static java.time.temporal.ChronoUnit.MILLIS; 77 import static java.time.temporal.ChronoUnit.MINUTES; 78 import static java.time.temporal.ChronoUnit.MONTHS; [all …]
|
D | JulianFields.java | 62 package java.time.temporal; 64 import static java.time.temporal.ChronoField.EPOCH_DAY; 65 import static java.time.temporal.ChronoUnit.DAYS; 66 import static java.time.temporal.ChronoUnit.FOREVER; 263 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() argument 264 return temporal.isSupported(EPOCH_DAY); in isSupportedBy() 268 public ValueRange rangeRefinedBy(TemporalAccessor temporal) { in rangeRefinedBy() argument 269 if (isSupportedBy(temporal) == false) { in rangeRefinedBy() 276 public long getFrom(TemporalAccessor temporal) { in getFrom() argument 277 return temporal.getLong(EPOCH_DAY) + offset; in getFrom() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKChronoFieldSerialization.java | 57 package tck.java.time.temporal.serial; 59 import static java.time.temporal.ChronoField.ALIGNED_DAY_OF_WEEK_IN_MONTH; 60 import static java.time.temporal.ChronoField.ALIGNED_DAY_OF_WEEK_IN_YEAR; 61 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH; 62 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_YEAR; 63 import static java.time.temporal.ChronoField.AMPM_OF_DAY; 64 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_AMPM; 65 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_DAY; 66 import static java.time.temporal.ChronoField.DAY_OF_MONTH; 67 import static java.time.temporal.ChronoField.DAY_OF_WEEK; [all …]
|
D | TCKChronoUnitSerialization.java | 57 package tck.java.time.temporal.serial; 59 import static java.time.temporal.ChronoUnit.CENTURIES; 60 import static java.time.temporal.ChronoUnit.DAYS; 61 import static java.time.temporal.ChronoUnit.DECADES; 62 import static java.time.temporal.ChronoUnit.ERAS; 63 import static java.time.temporal.ChronoUnit.FOREVER; 64 import static java.time.temporal.ChronoUnit.HALF_DAYS; 65 import static java.time.temporal.ChronoUnit.HOURS; 66 import static java.time.temporal.ChronoUnit.MICROS; 67 import static java.time.temporal.ChronoUnit.MILLENNIA; [all …]
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimePrintContext.java | 64 import static java.time.temporal.ChronoField.EPOCH_DAY; 65 import static java.time.temporal.ChronoField.INSTANT_SECONDS; 66 import static java.time.temporal.ChronoField.OFFSET_SECONDS; 75 import java.time.temporal.ChronoField; 76 import java.time.temporal.TemporalAccessor; 77 import java.time.temporal.TemporalField; 78 import java.time.temporal.TemporalQueries; 79 import java.time.temporal.TemporalQuery; 80 import java.time.temporal.ValueRange; 101 private TemporalAccessor temporal; field in DateTimePrintContext [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKChronoField.java | 57 package tck.java.time.temporal; 59 import static java.time.temporal.ChronoField.ALIGNED_DAY_OF_WEEK_IN_MONTH; 60 import static java.time.temporal.ChronoField.ALIGNED_DAY_OF_WEEK_IN_YEAR; 61 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH; 62 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_YEAR; 63 import static java.time.temporal.ChronoField.AMPM_OF_DAY; 64 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_DAY; 65 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_AMPM; 66 import static java.time.temporal.ChronoField.DAY_OF_MONTH; 67 import static java.time.temporal.ChronoField.DAY_OF_WEEK; [all …]
|
D | TCKChronoUnit.java | 57 package tck.java.time.temporal; 59 import static java.time.temporal.ChronoUnit.CENTURIES; 60 import static java.time.temporal.ChronoUnit.DAYS; 61 import static java.time.temporal.ChronoUnit.DECADES; 62 import static java.time.temporal.ChronoUnit.ERAS; 63 import static java.time.temporal.ChronoUnit.FOREVER; 64 import static java.time.temporal.ChronoUnit.HALF_DAYS; 65 import static java.time.temporal.ChronoUnit.HOURS; 66 import static java.time.temporal.ChronoUnit.MICROS; 67 import static java.time.temporal.ChronoUnit.MILLENNIA; [all …]
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoPeriodImpl.java | 59 import static java.time.temporal.ChronoField.MONTH_OF_YEAR; 60 import static java.time.temporal.ChronoUnit.DAYS; 61 import static java.time.temporal.ChronoUnit.MONTHS; 62 import static java.time.temporal.ChronoUnit.YEARS; 72 import java.time.temporal.ChronoUnit; 73 import java.time.temporal.Temporal; 74 import java.time.temporal.TemporalAccessor; 75 import java.time.temporal.TemporalAmount; 76 import java.time.temporal.TemporalQueries; 77 import java.time.temporal.TemporalUnit; [all …]
|
D | ChronoLocalDate.java | 64 import static java.time.temporal.ChronoField.EPOCH_DAY; 65 import static java.time.temporal.ChronoField.ERA; 66 import static java.time.temporal.ChronoField.YEAR; 67 import static java.time.temporal.ChronoUnit.DAYS; 73 import java.time.temporal.ChronoField; 74 import java.time.temporal.ChronoUnit; 75 import java.time.temporal.Temporal; 76 import java.time.temporal.TemporalAccessor; 77 import java.time.temporal.TemporalAdjuster; 78 import java.time.temporal.TemporalAmount; [all …]
|
D | Chronology.java | 73 import java.time.temporal.ChronoField; 74 import java.time.temporal.TemporalAccessor; 75 import java.time.temporal.TemporalField; 76 import java.time.temporal.TemporalQueries; 77 import java.time.temporal.TemporalQuery; 78 import java.time.temporal.UnsupportedTemporalTypeException; 79 import java.time.temporal.ValueRange; 177 static Chronology from(TemporalAccessor temporal) { in from() argument 178 Objects.requireNonNull(temporal, "temporal"); in from() 179 Chronology obj = temporal.query(TemporalQueries.chronology()); in from() [all …]
|
D | Era.java | 64 import static java.time.temporal.ChronoField.ERA; 65 import static java.time.temporal.ChronoUnit.ERAS; 68 import java.time.temporal.UnsupportedTemporalTypeException; 71 import java.time.temporal.ChronoField; 72 import java.time.temporal.Temporal; 73 import java.time.temporal.TemporalAccessor; 74 import java.time.temporal.TemporalAdjuster; 75 import java.time.temporal.TemporalField; 76 import java.time.temporal.TemporalQueries; 77 import java.time.temporal.TemporalQuery; [all …]
|
D | ChronoLocalDateTime.java | 64 import static java.time.temporal.ChronoField.EPOCH_DAY; 65 import static java.time.temporal.ChronoField.NANO_OF_DAY; 66 import static java.time.temporal.ChronoUnit.FOREVER; 67 import static java.time.temporal.ChronoUnit.NANOS; 76 import java.time.temporal.ChronoField; 77 import java.time.temporal.ChronoUnit; 78 import java.time.temporal.Temporal; 79 import java.time.temporal.TemporalAccessor; 80 import java.time.temporal.TemporalAdjuster; 81 import java.time.temporal.TemporalAmount; [all …]
|
D | ChronoZonedDateTime.java | 64 import static java.time.temporal.ChronoField.INSTANT_SECONDS; 65 import static java.time.temporal.ChronoField.OFFSET_SECONDS; 66 import static java.time.temporal.ChronoUnit.FOREVER; 67 import static java.time.temporal.ChronoUnit.NANOS; 76 import java.time.temporal.ChronoField; 77 import java.time.temporal.ChronoUnit; 78 import java.time.temporal.Temporal; 79 import java.time.temporal.TemporalAccessor; 80 import java.time.temporal.TemporalAdjuster; 81 import java.time.temporal.TemporalAmount; [all …]
|
/libcore/ojluni/src/main/java/java/time/ |
D | DayOfWeek.java | 64 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 65 import static java.time.temporal.ChronoUnit.DAYS; 69 import java.time.temporal.ChronoField; 70 import java.time.temporal.Temporal; 71 import java.time.temporal.TemporalAccessor; 72 import java.time.temporal.TemporalAdjuster; 73 import java.time.temporal.TemporalField; 74 import java.time.temporal.TemporalQueries; 75 import java.time.temporal.TemporalQuery; 76 import java.time.temporal.UnsupportedTemporalTypeException; [all …]
|
D | Month.java | 64 import static java.time.temporal.ChronoField.MONTH_OF_YEAR; 65 import static java.time.temporal.ChronoUnit.MONTHS; 71 import java.time.temporal.ChronoField; 72 import java.time.temporal.Temporal; 73 import java.time.temporal.TemporalAccessor; 74 import java.time.temporal.TemporalAdjuster; 75 import java.time.temporal.TemporalField; 76 import java.time.temporal.TemporalQueries; 77 import java.time.temporal.TemporalQuery; 78 import java.time.temporal.UnsupportedTemporalTypeException; [all …]
|
D | MonthDay.java | 64 import static java.time.temporal.ChronoField.DAY_OF_MONTH; 65 import static java.time.temporal.ChronoField.MONTH_OF_YEAR; 78 import java.time.temporal.ChronoField; 79 import java.time.temporal.Temporal; 80 import java.time.temporal.TemporalAccessor; 81 import java.time.temporal.TemporalAdjuster; 82 import java.time.temporal.TemporalField; 83 import java.time.temporal.TemporalQueries; 84 import java.time.temporal.TemporalQuery; 85 import java.time.temporal.UnsupportedTemporalTypeException; [all …]
|
D | Year.java | 64 import static java.time.temporal.ChronoField.ERA; 65 import static java.time.temporal.ChronoField.YEAR; 66 import static java.time.temporal.ChronoField.YEAR_OF_ERA; 67 import static java.time.temporal.ChronoUnit.CENTURIES; 68 import static java.time.temporal.ChronoUnit.DECADES; 69 import static java.time.temporal.ChronoUnit.ERAS; 70 import static java.time.temporal.ChronoUnit.MILLENNIA; 71 import static java.time.temporal.ChronoUnit.YEARS; 85 import java.time.temporal.ChronoField; 86 import java.time.temporal.ChronoUnit; [all …]
|
D | YearMonth.java | 64 import static java.time.temporal.ChronoField.ERA; 65 import static java.time.temporal.ChronoField.MONTH_OF_YEAR; 66 import static java.time.temporal.ChronoField.PROLEPTIC_MONTH; 67 import static java.time.temporal.ChronoField.YEAR; 68 import static java.time.temporal.ChronoField.YEAR_OF_ERA; 69 import static java.time.temporal.ChronoUnit.CENTURIES; 70 import static java.time.temporal.ChronoUnit.DECADES; 71 import static java.time.temporal.ChronoUnit.ERAS; 72 import static java.time.temporal.ChronoUnit.MILLENNIA; 73 import static java.time.temporal.ChronoUnit.MONTHS; [all …]
|
D | Period.java | 64 import static java.time.temporal.ChronoUnit.DAYS; 65 import static java.time.temporal.ChronoUnit.MONTHS; 66 import static java.time.temporal.ChronoUnit.YEARS; 79 import java.time.temporal.ChronoUnit; 80 import java.time.temporal.Temporal; 81 import java.time.temporal.TemporalAccessor; 82 import java.time.temporal.TemporalAmount; 83 import java.time.temporal.TemporalQueries; 84 import java.time.temporal.TemporalUnit; 85 import java.time.temporal.UnsupportedTemporalTypeException; [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | MockFieldNoValue.java | 60 package test.java.time.temporal; 62 import static java.time.temporal.ChronoUnit.MONTHS; 63 import static java.time.temporal.ChronoUnit.WEEKS; 66 import java.time.temporal.Temporal; 67 import java.time.temporal.TemporalAccessor; 68 import java.time.temporal.TemporalField; 69 import java.time.temporal.TemporalUnit; 70 import java.time.temporal.ValueRange; 106 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() argument 111 public ValueRange rangeRefinedBy(TemporalAccessor temporal) { in rangeRefinedBy() argument [all …]
|