HomeSort by relevance Sort by last modified time
    Searched refs:TemporalQueries (Results 1 - 25 of 57) sorted by null

1 2 3

  /libcore/ojluni/src/main/java/java/time/temporal/
TemporalQueries.java 118 public final class TemporalQueries {
127 private TemporalQueries() {
168 return TemporalQueries.ZONE_ID;
207 return TemporalQueries.CHRONO;
244 return TemporalQueries.PRECISION;
268 return TemporalQueries.ZONE;
291 return TemporalQueries.OFFSET;
314 return TemporalQueries.LOCAL_DATE;
337 return TemporalQueries.LOCAL_TIME;
345 temporal.query(TemporalQueries.ZONE_ID)
    [all...]
TemporalAccessor.java 275 * if (query == TemporalQueries.zoneId() ||
276 * query == TemporalQueries.chronology() || query == TemporalQueries.precision()) {
293 * if (query == TemporalQueries.precision()) {
309 if (query == TemporalQueries.zoneId()
310 || query == TemporalQueries.chronology()
311 || query == TemporalQueries.precision()) {
  /libcore/luni/src/test/java/libcore/java/time/format/
DateTimeFormatterBuilderTest.java 28 import java.time.temporal.TemporalQueries;
79 formatter.parse("Europe/London").query(TemporalQueries.zoneId()));
81 formatter.parse("UTC").query(TemporalQueries.zoneId()));
83 formatter.parse("GMT+01:00").query(TemporalQueries.zoneId()));
87 formatter.parse("UTC+01:00").query(TemporalQueries.zoneId()));
90 formatter.parse("+01:00").query(TemporalQueries.zoneId()));
  /libcore/ojluni/src/test/java/time/tck/java/time/format/
TCKZoneIdPrinterParser.java 74 import java.time.temporal.TemporalQueries;
217 assertEquals(parsed.query(TemporalQueries.zoneId()), expected, "Incorrect zoneId parsing: " + text);
218 assertEquals(parsed.query(TemporalQueries.offset()), null, "Incorrect offset parsing: " + text);
219 assertEquals(parsed.query(TemporalQueries.zone()), expected, "Incorrect zone parsing: " + text);
234 assertEquals(parsed.query(TemporalQueries.zoneId()), expected, "Incorrect zoneId parsing: " + prefixText);
235 assertEquals(parsed.query(TemporalQueries.offset()), null, "Incorrect offset parsing: " + prefixText);
236 assertEquals(parsed.query(TemporalQueries.zone()), expected, "Incorrect zone parsing: " + prefixText);
250 assertEquals(parsed.query(TemporalQueries.zoneId()), expected, "Incorrect zoneId parsing: " + suffixText);
251 assertEquals(parsed.query(TemporalQueries.offset()), null, "Incorrect offset parsing: " + suffixText);
252 assertEquals(parsed.query(TemporalQueries.zone()), expected, "Incorrect zone parsing: " + suffixText)
    [all...]
TCKDateTimeParseResolver.java 120 import java.time.temporal.TemporalQueries;
157 assertEquals(accessor.query(TemporalQueries.localDate()), null);
158 assertEquals(accessor.query(TemporalQueries.localTime()), null);
196 assertEquals(accessor.query(TemporalQueries.localDate()), null);
197 assertEquals(accessor.query(TemporalQueries.localTime()), null);
228 assertEquals(accessor.query(TemporalQueries.localDate()), null);
229 assertEquals(accessor.query(TemporalQueries.localTime()), null);
262 assertEquals(accessor.query(TemporalQueries.localDate()), null);
263 assertEquals(accessor.query(TemporalQueries.localTime()), null);
288 assertEquals(accessor.query(TemporalQueries.localDate()), expectedDate)
    [all...]
TCKChronoPrinterParser.java 71 import java.time.temporal.TemporalQueries;
126 assertEquals(parsed.query(TemporalQueries.chronology()), expected);
144 assertEquals(parsed.query(TemporalQueries.chronology()), expected);
  /libcore/ojluni/src/test/java/time/test/java/time/format/
TestCharLiteralParser.java 69 import java.time.temporal.TemporalQueries;
114 assertEquals(parsed.query(TemporalQueries.chronology()), null);
115 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
TestStringLiteralParser.java 69 import java.time.temporal.TemporalQueries;
117 assertEquals(parsed.query(TemporalQueries.chronology()), null);
118 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
TestNumberParser.java 75 import java.time.temporal.TemporalQueries;
181 assertEquals(parsed.query(TemporalQueries.chronology()), null);
182 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
201 assertEquals(parsed.query(TemporalQueries.chronology()), null);
202 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
316 assertEquals(parsed.query(TemporalQueries.chronology()), null);
317 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
426 assertEquals(parsed.query(TemporalQueries.chronology()), null);
427 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
517 assertEquals(parsed.query(TemporalQueries.chronology()), null)
    [all...]
  /libcore/ojluni/src/main/java/java/time/chrono/
ChronoLocalDate.java 80 import java.time.temporal.TemporalQueries;
289 Chronology chrono = temporal.query(TemporalQueries.chronology());
508 if (query == TemporalQueries.zoneId() || query == TemporalQueries.zone() || query == TemporalQueries.offset()) {
510 } else if (query == TemporalQueries.localTime()) {
512 } else if (query == TemporalQueries.chronology()) {
514 } else if (query == TemporalQueries.precision()) {
    [all...]
ChronoLocalDateTime.java 83 import java.time.temporal.TemporalQueries;
169 Chronology chrono = temporal.query(TemporalQueries.chronology());
337 if (query == TemporalQueries.zoneId() || query == TemporalQueries.zone() || query == TemporalQueries.offset()) {
339 } else if (query == TemporalQueries.localTime()) {
341 } else if (query == TemporalQueries.chronology()) {
343 } else if (query == TemporalQueries.precision()) {
ChronoZonedDateTime.java 83 import java.time.temporal.TemporalQueries;
170 Chronology chrono = temporal.query(TemporalQueries.chronology());
484 if (query == TemporalQueries.zone() || query == TemporalQueries.zoneId()) {
486 } else if (query == TemporalQueries.offset()) {
488 } else if (query == TemporalQueries.localTime()) {
490 } else if (query == TemporalQueries.chronology()) {
492 } else if (query == TemporalQueries.precision()) {
Era.java 76 import java.time.temporal.TemporalQueries;
269 if (query == TemporalQueries.precision()) {
  /libcore/ojluni/src/test/java/time/tck/java/time/
TCKDayOfWeek.java 80 import java.time.temporal.TemporalQueries;
219 {DayOfWeek.FRIDAY, TemporalQueries.chronology(), null},
220 {DayOfWeek.FRIDAY, TemporalQueries.zoneId(), null},
221 {DayOfWeek.FRIDAY, TemporalQueries.precision(), ChronoUnit.DAYS},
222 {DayOfWeek.FRIDAY, TemporalQueries.zone(), null},
223 {DayOfWeek.FRIDAY, TemporalQueries.offset(), null},
224 {DayOfWeek.FRIDAY, TemporalQueries.localDate(), null},
225 {DayOfWeek.FRIDAY, TemporalQueries.localTime(), null},
TCKMonth.java 76 import java.time.temporal.TemporalQueries;
211 {Month.JUNE, TemporalQueries.chronology(), IsoChronology.INSTANCE},
212 {Month.JUNE, TemporalQueries.zoneId(), null},
213 {Month.JUNE, TemporalQueries.precision(), ChronoUnit.MONTHS},
214 {Month.JUNE, TemporalQueries.zone(), null},
215 {Month.JUNE, TemporalQueries.offset(), null},
216 {Month.JUNE, TemporalQueries.localDate(), null},
217 {Month.JUNE, TemporalQueries.localTime(), null},
TCKZoneOffset.java 84 import java.time.temporal.TemporalQueries;
527 {ZoneOffset.UTC, TemporalQueries.chronology(), null},
528 {ZoneOffset.UTC, TemporalQueries.zoneId(), null},
529 {ZoneOffset.UTC, TemporalQueries.precision(), null},
530 {ZoneOffset.UTC, TemporalQueries.zone(), ZoneOffset.UTC},
531 {ZoneOffset.UTC, TemporalQueries.offset(), ZoneOffset.UTC},
532 {ZoneOffset.UTC, TemporalQueries.localDate(), null},
533 {ZoneOffset.UTC, TemporalQueries.localTime(), null},
  /libcore/ojluni/src/main/java/java/time/format/
DateTimePrintContext.java 78 import java.time.temporal.TemporalQueries;
132 Chronology temporalChrono = temporal.query(TemporalQueries.chronology());
133 ZoneId temporalZone = temporal.query(TemporalQueries.zoneId());
210 if (query == TemporalQueries.chronology()) {
213 if (query == TemporalQueries.zoneId()) {
216 if (query == TemporalQueries.precision()) {
Parsed.java 96 import java.time.temporal.TemporalQueries;
211 if (query == TemporalQueries.zoneId()) {
213 } else if (query == TemporalQueries.chronology()) {
215 } else if (query == TemporalQueries.localDate()) {
217 } else if (query == TemporalQueries.localTime()) {
219 } else if (query == TemporalQueries.zone() || query == TemporalQueries.offset()) {
221 } else if (query == TemporalQueries.precision()) {
  /libcore/ojluni/src/main/java/java/time/
Month.java 76 import java.time.temporal.TemporalQueries;
564 if (query == TemporalQueries.chronology()) {
566 } else if (query == TemporalQueries.precision()) {
DayOfWeek.java 74 import java.time.temporal.TemporalQueries;
407 if (query == TemporalQueries.precision()) {
Instant.java 90 import java.time.temporal.TemporalQueries;
    [all...]
OffsetTime.java 87 import java.time.temporal.TemporalQueries;
    [all...]
OffsetDateTime.java 87 import java.time.temporal.TemporalQueries;
354 LocalDate date = temporal.query(TemporalQueries.localDate());
355 LocalTime time = temporal.query(TemporalQueries.localTime());
    [all...]
LocalTime.java 88 import java.time.temporal.TemporalQueries;
388 * The conversion uses the {@link TemporalQueries#localTime()} query, which relies
400 LocalTime time = temporal.query(TemporalQueries.localTime());
    [all...]
  /libcore/ojluni/src/test/java/time/tck/java/time/chrono/
TCKIsoChronology.java 75 import java.time.temporal.TemporalQueries;
112 if (query == TemporalQueries.chronology()) {
135 if (query == TemporalQueries.chronology()) {
171 if (query == TemporalQueries.localDate()) {
210 if (query == TemporalQueries.localDate()) {
213 if (query == TemporalQueries.localTime()) {
259 if (query == TemporalQueries.localDate()) {
262 if (query == TemporalQueries.localTime()) {
265 if (query == TemporalQueries.zoneId() || query == TemporalQueries.zone())
    [all...]

Completed in 1435 milliseconds

1 2 3