Home
last modified time | relevance | path

Searched refs:localTime (Results 1 – 25 of 33) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/util/calendar/
DEra.java69 private final boolean localTime; field in Era
82 public Era(String name, String abbr, long since, boolean localTime) { in Era() argument
86 this.localTime = localTime; in Era()
110 if (zone == null || !localTime) { in getSince()
122 return localTime; in isLocalTime()
133 && localTime == that.localTime; in equals()
141 ^ (localTime ? 1 : 0); in hashCode()
152 if (localTime) { in toString()
DLocalGregorianCalendar.java138 boolean localTime = true; in getLocalGregorianCalendar()
155 localTime = false; in getLocalGregorianCalendar()
166 Era era = new Era(eraName, abbr, since, localTime); in getLocalGregorianCalendar()
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/
DEra.java32 public Era(java.lang.String name, java.lang.String abbr, long since, boolean localTime) { in Era() argument
87 private final boolean localTime; field in Era
90 localTime = false;
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeParseResolver.java158 assertEquals(accessor.query(TemporalQueries.localTime()), null); in test_resolveOneNoChange()
197 assertEquals(accessor.query(TemporalQueries.localTime()), null); in test_resolveTwoNoChange()
229 assertEquals(accessor.query(TemporalQueries.localTime()), null); in test_resolveThreeNoChange()
263 assertEquals(accessor.query(TemporalQueries.localTime()), null); in test_resolveOneToField()
289 assertEquals(accessor.query(TemporalQueries.localTime()), null); in test_resolveOneToDate()
314 assertEquals(accessor.query(TemporalQueries.localTime()), expectedTime); in test_resolveOneToTime()
345 assertEquals(accessor.query(TemporalQueries.localTime()), null); in test_resolveTwoToField()
393 assertEquals(accessor.query(TemporalQueries.localTime()), null); in test_resolveTwoToDate()
480 assertEquals(accessor.query(TemporalQueries.localTime()), expectedTime); in test_resolveTwoToTime()
513 assertEquals(accessor.query(TemporalQueries.localTime()), null); in test_resolveThreeToDate()
[all …]
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDate.java510 } else if (query == TemporalQueries.localTime()) { in query()
653 default ChronoLocalDateTime<?> atTime(LocalTime localTime) { in atTime() argument
654 return ChronoLocalDateTimeImpl.of(this, localTime); in atTime()
DThaiBuddhistDate.java421 public final ChronoLocalDateTime<ThaiBuddhistDate> atTime(LocalTime localTime) { in atTime() argument
422 return (ChronoLocalDateTime<ThaiBuddhistDate>) super.atTime(localTime); in atTime()
DMinguoDate.java421 public final ChronoLocalDateTime<MinguoDate> atTime(LocalTime localTime) { in atTime() argument
422 return (ChronoLocalDateTime<MinguoDate>)super.atTime(localTime); in atTime()
DHijrahDate.java582 public final ChronoLocalDateTime<HijrahDate> atTime(LocalTime localTime) { in atTime() argument
583 return (ChronoLocalDateTime<HijrahDate>)super.atTime(localTime); in atTime()
DJapaneseDate.java666 public final ChronoLocalDateTime<JapaneseDate> atTime(LocalTime localTime) { in atTime() argument
667 return (ChronoLocalDateTime<JapaneseDate>)super.atTime(localTime); in atTime()
DChronoLocalDateTime.java339 } else if (query == TemporalQueries.localTime()) { in query()
DChronoZonedDateTime.java488 } else if (query == TemporalQueries.localTime()) { in query()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestOffsetDateTime.java110 LocalTime localTime = LocalTime.of(h, m, s, n); in test_get_same() local
111 LocalDateTime localDateTime = LocalDateTime.of(localDate, localTime); in test_get_same()
116 assertSame(a.toLocalTime(), localTime); in test_get_same() local
DTestLocalDateTime.java537 for (LocalTime localTime : localTimes) { in test_comparisons_LocalDateTime()
538 localDateTimes[i++] = LocalDateTime.of(localDate, localTime); in test_comparisons_LocalDateTime()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKOffsetTime.java301 LocalTime localTime = LocalTime.of(11, 30, 10, 500);
302 OffsetTime test = OffsetTime.of(localTime, OFFSET_PONE);
313 LocalTime localTime = LocalTime.of(11, 30, 10, 500);
314 OffsetTime.of(localTime, (ZoneOffset) null);
504 LocalTime localTime = LocalTime.of(h, m, s, n);
505 OffsetTime a = OffsetTime.of(localTime, offset);
507 assertEquals(a.toLocalTime(), localTime);
509 assertEquals(a.toString(), localTime.toString() + offset.toString());
510 assertEquals(a.getHour(), localTime.getHour());
511 assertEquals(a.getMinute(), localTime.getMinute());
[all …]
DTCKDayOfWeek.java225 {DayOfWeek.FRIDAY, TemporalQueries.localTime(), null}, in data_query()
DTCKZonedDateTime.java833 LocalTime localTime = LocalTime.of(h, m, s, n);
834 LocalDateTime localDateTime = LocalDateTime.of(localDate, localTime);
844 assertEquals(a.getHour(), localTime.getHour());
845 assertEquals(a.getMinute(), localTime.getMinute());
846 assertEquals(a.getSecond(), localTime.getSecond());
847 assertEquals(a.getNano(), localTime.getNano());
850 assertEquals(a.toLocalTime(), localTime);
DTCKLocalTime.java430 LocalTime localTime = LocalTime.ofSecondOfDay(2 * 60 * 60 + 17 * 60 + 23); in factory_ofSecondOfDay() local
431 check(localTime, 2, 17, 23, 0); in factory_ofSecondOfDay()
449 LocalTime localTime = LocalTime.ofNanoOfDay(60 * 60 * 1000000000L + 17); in factory_ofNanoOfDay() local
450 check(localTime, 1, 0, 0, 17); in factory_ofNanoOfDay()
667 {TEST_12_30_40_987654321, TemporalQueries.localTime(), TEST_12_30_40_987654321}, in data_query()
DTCKOffsetDateTime.java514 LocalTime localTime = LocalTime.of(h, m, s, n);
515 LocalDateTime localDateTime = LocalDateTime.of(localDate, localTime);
529 assertEquals(a.toOffsetTime(), OffsetTime.of(localTime, offset));
649 … {TEST_2008_6_30_11_30_59_000000500, TemporalQueries.localTime(), LocalTime.of(11, 30, 59, 500)},
DTCKMonth.java217 {Month.JUNE, TemporalQueries.localTime(), null}, in data_query()
/libcore/ojluni/src/main/java/java/time/temporal/
DTemporalQueries.java336 public static TemporalQuery<LocalTime> localTime() { in localTime() method in TemporalQueries
/libcore/ojluni/src/main/java/java/time/
DOffsetDateTime.java355 LocalTime time = temporal.query(TemporalQueries.localTime()); in from()
1545 } else if (query == TemporalQueries.localTime()) { in query()
DLocalTime.java400 LocalTime time = temporal.query(TemporalQueries.localTime()); in from()
1289 } else if (query == TemporalQueries.localTime()) { in query()
DOffsetTime.java1077 } else if (query == TemporalQueries.localTime()) { in query()
DInstant.java1056 query == TemporalQueries.localDate() || query == TemporalQueries.localTime()) { in query()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKIsoChronology.java213 if (query == TemporalQueries.localTime()) { in test_localDateTime_TemporalAccessor()
262 if (query == TemporalQueries.localTime()) { in test_zonedDateTime_TemporalAccessor()

12