/openjdk9/jdk/src/java.base/share/classes/java/time/temporal/ |
H A D | TemporalAccessor.java | 82 * the {@linkplain java.time.chrono.Chronology chronology} and the 276 * query == TemporalQueries.chronology() || query == TemporalQueries.precision()) { 310 || query == TemporalQueries.chronology()
|
H A D | TemporalQueries.java | 174 * This queries a {@code TemporalAccessor} for the chronology. 176 * then it should return the chronology that the date is expressed in. 187 * {@code ChronoLocalDate} returns the associated chronology<br> 188 * {@code ChronoLocalDateTime} returns the associated chronology<br> 189 * {@code ChronoZonedDateTime} returns the associated chronology<br> 190 * {@code Era} returns the associated chronology<br> 202 * exception if a chronology cannot be obtained. 204 * @return a query that can obtain the chronology of a temporal, not null 206 public static TemporalQuery<Chronology> chronology() { method in class:TemporalQueries
|
/openjdk9/jdk/test/java/time/tck/java/time/format/ |
H A D | TCKChronoPrinterParser.java | 126 assertEquals(parsed.query(TemporalQueries.chronology()), expected); 144 assertEquals(parsed.query(TemporalQueries.chronology()), expected);
|
H A D | TCKDateTimeParseResolver.java | 903 assertEquals(accessor.query(TemporalQueries.chronology()), IsoChronology.INSTANCE); 913 assertEquals(accessor.query(TemporalQueries.chronology()), MinguoChronology.INSTANCE); 922 assertEquals(accessor.query(TemporalQueries.chronology()), ThaiBuddhistChronology.INSTANCE); 932 assertEquals(accessor.query(TemporalQueries.chronology()), ThaiBuddhistChronology.INSTANCE); 993 assertEquals(accessor.query(TemporalQueries.chronology()), IsoChronology.INSTANCE); 1004 assertEquals(accessor.query(TemporalQueries.chronology()), MinguoChronology.INSTANCE); 1030 assertEquals(accessor.query(TemporalQueries.chronology()), IsoChronology.INSTANCE); 1041 assertEquals(accessor.query(TemporalQueries.chronology()), MinguoChronology.INSTANCE); 1067 assertEquals(accessor.query(TemporalQueries.chronology()), IsoChronology.INSTANCE); 1080 assertEquals(accessor.query(TemporalQueries.chronology()), MinguoChronolog [all...] |
/openjdk9/jdk/test/java/time/test/java/time/format/ |
H A D | TestCharLiteralParser.java | 114 assertEquals(parsed.query(TemporalQueries.chronology()), null);
|
H A D | TestStringLiteralParser.java | 117 assertEquals(parsed.query(TemporalQueries.chronology()), null);
|
H A D | TestNumberParser.java | 181 assertEquals(parsed.query(TemporalQueries.chronology()), null); 201 assertEquals(parsed.query(TemporalQueries.chronology()), null); 316 assertEquals(parsed.query(TemporalQueries.chronology()), null); 426 assertEquals(parsed.query(TemporalQueries.chronology()), null); 517 assertEquals(parsed.query(TemporalQueries.chronology()), null); 555 assertEquals(parsed.query(TemporalQueries.chronology()), null);
|
H A D | TestNonIsoFormatter.java | 57 * Test DateTimeFormatter with non-ISO chronology. 173 Chronology cal = ta.query(TemporalQueries.chronology());
|
H A D | TestReducedParser.java | 467 parsed.query(TemporalQueries.chronology()), input)); 490 parsed.query(TemporalQueries.chronology()), input));
|
/openjdk9/jdk/src/java.base/share/classes/java/time/chrono/ |
H A D | HijrahDate.java | 101 * The same chronology is propagated to each HijrahDate computed from the date. 160 * Returns a HijrahDate for the chronology and epochDay. 161 * @param chrono The Hijrah chronology 263 * @param chrono The chronology to create the date with 294 * Gets the chronology of this date, which is the Hijrah calendar system. 297 * The era and other fields in {@link ChronoField} are defined by the chronology. 299 * @return the Hijrah chronology, not null 431 * For example, if the adjuster requires an ISO chronology 443 * HijrahChronology. If the chronology has a shorter month length 446 * @param chronology th 449 withVariant(HijrahChronology chronology) argument [all...] |
H A D | ChronoLocalDate.java | 88 * A date without time-of-day or time-zone in an arbitrary chronology, intended 95 * {@code Chronology chronology}, or calendar system, is pluggable. 98 * The chronology defines how the calendar system operates and the meaning of 193 * <li>Either store the chronology (calendar system) in the user profile or lookup 194 * the chronology from the user locale 245 * time-line order ignoring the chronology. 248 * only compares the underlying date and not the chronology. 253 * @return a comparator that compares in time-line order ignoring the chronology 270 * The conversion extracts and combines the chronology and the date 272 * {@link Chronology#date(TemporalAccessor)} with the extracted chronology [all...] |
H A D | Chronology.java | 95 * The chronology operates behind the scenes to represent the general concept of a calendar system. 151 * Each chronology must define a chronology ID that is unique within the system. 152 * If the chronology represents a calendar system defined by the 168 * This obtains a chronology based on the specified temporal. 172 * The conversion will obtain the chronology using {@link TemporalQueries#chronology()}. 173 * If the specified temporal object does not have a chronology, {@link IsoChronology} is returned. 179 * @return the chronology, not null 184 Chronology obj = temporal.query(TemporalQueries.chronology()); [all...] |
H A D | ChronoZonedDateTime.java | 92 * A date-time with a time-zone in an arbitrary chronology, 99 * where the {@code Chronology chronology}, or calendar system, is pluggable. 102 * The chronology defines how the calendar system operates and the meaning of 126 * time-line order ignoring the chronology. 129 * only compares the underlying instant and not the chronology. 134 * @return a comparator that compares in time-line order ignoring the chronology 151 * The conversion extracts and combines the chronology, date, time and zone 153 * {@link Chronology#zonedDateTime(TemporalAccessor)} with the extracted chronology. 170 Chronology chrono = temporal.query(TemporalQueries.chronology()); 250 * Gets the chronology o [all...] |
H A D | ChronoLocalDateTime.java | 91 * A date-time without a time-zone in an arbitrary chronology, intended 98 * where the {@code Chronology chronology}, or calendar system, is pluggable. 101 * The chronology defines how the calendar system operates and the meaning of 125 * time-line order ignoring the chronology. 128 * only compares the underlying date-time and not the chronology. 133 * @return a comparator that compares in time-line order ignoring the chronology 150 * The conversion extracts and combines the chronology and the date-time 152 * {@link Chronology#localDateTime(TemporalAccessor)} with the extracted chronology. 169 Chronology chrono = temporal.query(TemporalQueries.chronology()); 178 * Gets the chronology o [all...] |
H A D | ChronoPeriodImpl.java | 96 // this class is only used by JDK chronology implementations and makes assumptions based on that fact 109 * The chronology. 305 * Validates that the temporal has the correct chronology. 309 Chronology temporalChrono = temporal.query(TemporalQueries.chronology()); 361 * out.writeUTF(getId()); // the chronology
|
/openjdk9/jdk/src/java.base/share/classes/java/time/format/ |
H A D | DateTimePrintContext.java | 132 Chronology temporalChrono = temporal.query(TemporalQueries.chronology()); 170 throw new DateTimeException("Unable to apply override chronology '" + overrideChrono + 210 if (query == TemporalQueries.chronology()) { 225 (effectiveChrono != null ? " with chronology " + effectiveChrono : "") +
|
/openjdk9/jdk/src/java.base/share/classes/java/time/ |
H A D | Month.java | 202 * chronology, or can be converted to a {@code LocalDate}. 564 if (query == TemporalQueries.chronology()) {
|
H A D | MonthDay.java | 258 * chronology, or can be converted to a {@code LocalDate}. 593 if (query == TemporalQueries.chronology()) {
|
H A D | YearMonth.java | 242 * chronology, or can be converted to a {@code LocalDate}. 955 if (query == TemporalQueries.chronology()) {
|
H A D | Year.java | 105 * <b>Note that years in the ISO chronology only align with years in the 240 * chronology, or can be converted to a {@code LocalDate}. 823 if (query == TemporalQueries.chronology()) {
|
H A D | Instant.java | 1059 if (query == TemporalQueries.chronology() || query == TemporalQueries.zoneId() ||
|
H A D | OffsetTime.java | 1081 } else if (query == TemporalQueries.zoneId() | query == TemporalQueries.chronology() || query == TemporalQueries.localDate()) {
|
H A D | Period.java | 250 * If the amount is a {@code ChronoPeriod} then it must use the ISO chronology. 263 throw new DateTimeException("Period requires ISO chronology: " + amount); 463 * Gets the chronology of this period, which is the ISO calendar system. 470 * @return the ISO chronology, not null 622 * @throws DateTimeException if the specified amount has a non-ISO chronology or 711 * @throws DateTimeException if the specified amount has a non-ISO chronology or 864 * If the temporal has a chronology, it must be the ISO chronology. 875 * First, the chronology of the temporal is checked to ensure it is ISO chronology o [all...] |
/openjdk9/jdk/test/java/time/test/java/util/ |
H A D | TestFormatter.java | 138 Chronology chrono = ((TemporalAccessor)o).query(TemporalQueries.chronology());
|
/openjdk9/jdk/test/java/time/tck/java/time/ |
H A D | TCKDayOfWeek.java | 219 {DayOfWeek.FRIDAY, TemporalQueries.chronology(), null},
|