Home
last modified time | relevance | path

Searched refs:temporal (Results 1 – 25 of 196) sorted by relevance

12345678

/libcore/ojluni/src/main/java/java/time/temporal/
DTemporalAdjusters.java62 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 …]
DTemporalQueries.java62 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 …]
DIsoFields.java57 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 …]
DWeekFields.java62 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 …]
DTemporalUnit.java62 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
DChronoField.java57 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 …]
DJulianFields.java62 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/
DTCKChronoFieldSerialization.java57 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 …]
DTCKChronoUnitSerialization.java57 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/
DDateTimePrintContext.java64 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/
DTCKChronoField.java57 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 …]
DTCKChronoUnit.java57 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/
DChronoPeriodImpl.java59 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 …]
DChronoLocalDate.java64 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 …]
DChronology.java73 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 …]
DEra.java64 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 …]
DChronoLocalDateTime.java64 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 …]
DChronoZonedDateTime.java64 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/
DDayOfWeek.java64 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 …]
DMonth.java64 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 …]
DMonthDay.java64 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 …]
DYear.java64 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 …]
DYearMonth.java64 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 …]
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DMockFieldNoValue.java60 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 …]
/libcore/luni/src/test/java/libcore/java/time/chrono/
DEraTest.java23 import static java.time.temporal.ChronoField.ERA;
30 import java.time.temporal.ChronoField;
31 import java.time.temporal.Temporal;
32 import java.time.temporal.TemporalAccessor;
33 import java.time.temporal.TemporalField;
34 import java.time.temporal.TemporalUnit;
35 import java.time.temporal.UnsupportedTemporalTypeException;
36 import java.time.temporal.ValueRange;
109 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() argument
114 public ValueRange rangeRefinedBy(TemporalAccessor temporal) { in rangeRefinedBy() argument
[all …]

12345678