Searched refs:chronology (Results 1 - 25 of 43) sorted by relevance

12

/openjdk9/jdk/src/java.base/share/classes/java/time/temporal/
H A DTemporalAccessor.java82 * the {@linkplain java.time.chrono.Chronology chronology} and the
276 * query == TemporalQueries.chronology() || query == TemporalQueries.precision()) {
310 || query == TemporalQueries.chronology()
H A DTemporalQueries.java174 * 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 DTCKChronoPrinterParser.java126 assertEquals(parsed.query(TemporalQueries.chronology()), expected);
144 assertEquals(parsed.query(TemporalQueries.chronology()), expected);
H A DTCKDateTimeParseResolver.java903 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 DTestCharLiteralParser.java114 assertEquals(parsed.query(TemporalQueries.chronology()), null);
H A DTestStringLiteralParser.java117 assertEquals(parsed.query(TemporalQueries.chronology()), null);
H A DTestNumberParser.java181 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 DTestNonIsoFormatter.java57 * Test DateTimeFormatter with non-ISO chronology.
173 Chronology cal = ta.query(TemporalQueries.chronology());
H A DTestReducedParser.java467 parsed.query(TemporalQueries.chronology()), input));
490 parsed.query(TemporalQueries.chronology()), input));
/openjdk9/jdk/src/java.base/share/classes/java/time/chrono/
H A DHijrahDate.java101 * 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 DChronoLocalDate.java88 * 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 DChronology.java95 * 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 DChronoZonedDateTime.java92 * 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 DChronoLocalDateTime.java91 * 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 DChronoPeriodImpl.java96 // 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 DDateTimePrintContext.java132 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 DMonth.java202 * chronology, or can be converted to a {@code LocalDate}.
564 if (query == TemporalQueries.chronology()) {
H A DMonthDay.java258 * chronology, or can be converted to a {@code LocalDate}.
593 if (query == TemporalQueries.chronology()) {
H A DYearMonth.java242 * chronology, or can be converted to a {@code LocalDate}.
955 if (query == TemporalQueries.chronology()) {
H A DYear.java105 * <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 DInstant.java1059 if (query == TemporalQueries.chronology() || query == TemporalQueries.zoneId() ||
H A DOffsetTime.java1081 } else if (query == TemporalQueries.zoneId() | query == TemporalQueries.chronology() || query == TemporalQueries.localDate()) {
H A DPeriod.java250 * 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 DTestFormatter.java138 Chronology chrono = ((TemporalAccessor)o).query(TemporalQueries.chronology());
/openjdk9/jdk/test/java/time/tck/java/time/
H A DTCKDayOfWeek.java219 {DayOfWeek.FRIDAY, TemporalQueries.chronology(), null},

Completed in 207 milliseconds

12