HomeSort by relevance Sort by last modified time
    Searched refs:LocalTime (Results 26 - 50 of 87) sorted by null

12 3 4

  /libcore/ojluni/src/test/java/time/test/java/time/chrono/
TestJapaneseChronoImpl.java 62 import java.time.LocalTime;
108 OffsetDateTime jodt = OffsetDateTime.of(isoStartDate, LocalTime.MIN, ZoneOffset.UTC);
135 OffsetDateTime jodt = OffsetDateTime.of(LocalDate.from(jd), LocalTime.MIN, ZoneOffset.UTC);
TestExampleCode.java 63 import java.time.LocalTime;
171 ChronoLocalDateTime<HijrahDate> hdt = hd2.atTime(LocalTime.MIDNIGHT);
182 ChronoLocalDateTime<?> cldt = date.atTime(LocalTime.NOON);
216 return (ChronoLocalDateTime<D>) date.plus(1, ChronoUnit.DAYS).atTime(LocalTime.of(12, 0));
TestUmmAlQuraChronology.java 41 import java.time.LocalTime;
460 ChronoLocalDateTime<HijrahDate> hdt = hd.atTime(LocalTime.NOON);
599 assertEquals(test, LocalDateTime.of(localDate, LocalTime.MIDNIGHT));
653 {ZonedDateTime.of(2012, 2, 29, 2, 7, 1, 1, ZONE_RIYADH), HijrahChronology.INSTANCE.date(1433, 4, 7), LocalTime.of(2, 7, 1, 1), null},
654 {OffsetDateTime.of(2012, 2, 29, 2, 7, 1, 1, OFFSET_PTWO), HijrahChronology.INSTANCE.date(1433, 4, 7), LocalTime.of(2, 7, 1, 1), null},
659 {LocalTime.of(20, 30, 29, 0), null, null, DateTimeException.class},
665 public void test_zonedDateTime(TemporalAccessor accessor, HijrahDate expectedDate, LocalTime expectedTime, Class<?> expectedEx) {
    [all...]
  /libcore/luni/src/test/java/libcore/java/time/chrono/
IsoChronologyTest.java 22 import java.time.LocalTime;
108 assertEquals(LocalTime.of(15, 14, 13, 12), result.toLocalTime());
JapaneseChronologyTest.java 21 import java.time.LocalTime;
49 assertEquals(LocalTime.of(15, 14, 13, 12), result.toLocalTime());
  /libcore/ojluni/src/main/java/java/time/
Instant.java 64 import static java.time.LocalTime.NANOS_PER_SECOND;
65 import static java.time.LocalTime.SECONDS_PER_DAY;
66 import static java.time.LocalTime.SECONDS_PER_HOUR;
67 import static java.time.LocalTime.SECONDS_PER_MINUTE;
193 * This includes {@code Instant}, {@code LocalDate}, {@code LocalTime}, {@code OffsetDateTime},
    [all...]
Ser.java 146 * <li><a href="../../serialized-form.html#java.time.LocalTime">LocalTime.writeReplace</a>
181 ((LocalTime) object).writeExternal(out);
230 * <li><a href="../../serialized-form.html#java.time.LocalTime">LocalTime</a> - {@code LocalTime.of(hour, minute, second, nano);}
260 case LOCAL_TIME_TYPE: return LocalTime.readExternal(in);
ZoneOffset.java 64 import static java.time.LocalTime.MINUTES_PER_HOUR;
65 import static java.time.LocalTime.SECONDS_PER_HOUR;
66 import static java.time.LocalTime.SECONDS_PER_MINUTE;
    [all...]
Clock.java 64 import static java.time.LocalTime.NANOS_PER_MINUTE;
65 import static java.time.LocalTime.NANOS_PER_SECOND;
  /libcore/ojluni/src/test/java/time/tck/java/time/
TCKOffsetTime.java 101 import java.time.LocalTime;
278 assertEquals(test.toLocalTime(), LocalTime.of(h, m, s, n));
288 assertEquals(OffsetTime.of(LocalTime.of(h, m, s, n), offset), test);
301 LocalTime localTime = LocalTime.of(11, 30, 10, 500);
302 OffsetTime test = OffsetTime.of(localTime, OFFSET_PONE);
308 OffsetTime.of((LocalTime) null, OFFSET_PONE);
313 LocalTime localTime = LocalTime.of(11, 30, 10, 500)
    [all...]
TCKLocalDateTime.java 118 import java.time.LocalTime;
340 LocalTime expected = LocalTime.MIDNIGHT.plusNanos(123456789L);
743 LocalDateTime dateTime = LocalDateTime.of(LocalDate.of(2007, 7, 15), LocalTime.of(12, 30, 40, 987654321));
749 LocalDateTime.of(null, LocalTime.of(12, 30, 40, 987654321));
    [all...]
  /libcore/ojluni/src/main/java/java/time/zone/
IcuZoneRulesProvider.java 33 import java.time.LocalTime;
258 LocalTime time;
261 time = LocalTime.MIDNIGHT;
264 time = LocalTime.ofSecondOfDay(secondOfDay);
  /libcore/ojluni/src/test/java/time/tck/java/time/zone/
TCKZoneOffsetTransitionRule.java 66 import java.time.LocalTime;
82 private static final LocalTime TIME_0100 = LocalTime.of(1, 0);
227 Month.MARCH, 20, DayOfWeek.SUNDAY, LocalTime.MIDNIGHT, true, TimeDefinition.WALL,
339 Month.MARCH, 20, DayOfWeek.SUNDAY, LocalTime.MIDNIGHT, false, TimeDefinition.WALL,
350 Month.MARCH, 20, DayOfWeek.SUNDAY, LocalTime.MIDNIGHT, false, TimeDefinition.WALL,
353 Month.MARCH, 20, DayOfWeek.SUNDAY, LocalTime.MIDNIGHT, true, TimeDefinition.WALL,
450 Month.OCTOBER, 20, null, LocalTime.MIDNIGHT, true, TimeDefinition.WALL,
453 Month.OCTOBER, 20, null, LocalTime.MIDNIGHT, true, TimeDefinition.WALL,
494 Month.OCTOBER, 20, DayOfWeek.SUNDAY, LocalTime.MIDNIGHT, true, TimeDefinition.WALL
    [all...]
TCKFixedZoneRules.java 71 import java.time.LocalTime;
199 test.getTransitionRules().add(ZoneOffsetTransitionRule.of(Month.JULY, 2, null, LocalTime.of(12, 30), false, TimeDefinition.STANDARD, OFFSET_PONE, OFFSET_PTWO, OFFSET_PONE));
  /libcore/ojluni/src/main/java/java/time/format/
Parsed.java 85 import java.time.LocalTime;
153 private LocalTime time;
217 } else if (query == TemporalQueries.localTime()) {
291 if (resolvedObject instanceof LocalTime) {
292 updateCheckConflict((LocalTime) resolvedObject, Period.ZERO);
297 "ChronoLocalDateTime, ChronoLocalDate or LocalTime");
544 updateCheckConflict(LocalTime.ofNanoOfDay(nod), Period.ofDays(excessDays));
550 updateCheckConflict(LocalTime.MIDNIGHT, Period.ofDays(1));
554 updateCheckConflict(LocalTime.of(hodVal, mohVal, somVal, nosVal), Period.ZERO);
603 private void updateCheckConflict(LocalTime timeToSet, Period periodToSet)
    [all...]
  /external/fmtlib/test/
time-test.cc 28 fmt::format(s, *std::localtime(&t));
47 TEST(TimeTest, LocalTime) {
49 std::tm tm = *std::localtime(&t);
50 EXPECT_TRUE(EqualTime(tm, fmt::localtime(t)));
  /libcore/ojluni/src/test/java/time/test/java/time/format/
TestDateTimeFormatter.java 72 import java.time.LocalTime;
117 assertGoodErrorDate(LocalTime::from, "LocalTime");
133 assertGoodErrorTime(LocalTime::from, "LocalTime");
  /libcore/ojluni/src/test/java/time/tck/java/time/chrono/
TCKMinguoChronology.java 69 import java.time.LocalTime;
209 ChronoLocalDateTime<MinguoDate> hdt = hd.atTime(LocalTime.NOON);
229 ChronoLocalDateTime<MinguoDate> h3 = h2.atTime(LocalTime.NOON);
413 {LocalDateTime.of(2012, 2, 29, 2, 7), MinguoChronology.INSTANCE.date(MinguoEra.ROC, 2012 - YDIFF, 2, 29), LocalTime.of(2, 7), null},
414 {ZonedDateTime.of(2012, 2, 29, 2, 7, 1, 1, ZONE_PARIS), MinguoChronology.INSTANCE.date(MinguoEra.ROC, 2012 - YDIFF, 2, 29), LocalTime.of(2, 7, 1, 1), null},
415 {OffsetDateTime.of(2012, 2, 29, 2, 7, 1, 1, OFFSET_PTWO), MinguoChronology.INSTANCE.date(MinguoEra.ROC, 2012 - YDIFF, 2, 29), LocalTime.of(2, 7, 1, 1), null},
420 {LocalTime.of(20, 30, 29, 0), null, null, DateTimeException.class},
425 public void test_localDateTime(TemporalAccessor accessor, MinguoDate expectedDate, LocalTime expectedTime, Class<?> expectedEx) {
447 {ZonedDateTime.of(2012, 2, 29, 2, 7, 1, 1, ZONE_PARIS), MinguoChronology.INSTANCE.date(MinguoEra.ROC, 2012 - YDIFF, 2, 29), LocalTime.of(2, 7, 1, 1), null},
448 {OffsetDateTime.of(2012, 2, 29, 2, 7, 1, 1, OFFSET_PTWO), MinguoChronology.INSTANCE.date(MinguoEra.ROC, 2012 - YDIFF, 2, 29), LocalTime.of(2, 7, 1, 1), null}
    [all...]
TCKChronoLocalDate.java 69 import java.time.LocalTime;
317 ChronoLocalDate test2 = ChronoLocalDate.from(date.atTime(LocalTime.of(12, 30)));
319 ChronoLocalDate test3 = ChronoLocalDate.from(date.atTime(LocalTime.of(12, 30)).atZone(ZoneOffset.UTC));
325 ChronoLocalDate.from(LocalTime.of(12, 30));
  /frameworks/base/services/core/java/com/android/server/display/
NightDisplayService.java 319 public void onCustomStartTimeChanged(NightDisplayController.LocalTime startTime) {
328 public void onCustomEndTimeChanged(NightDisplayController.LocalTime endTime) {
438 private NightDisplayController.LocalTime mStartTime;
439 private NightDisplayController.LocalTime mEndTime;
527 public void onCustomStartTimeChanged(NightDisplayController.LocalTime startTime) {
534 public void onCustomEndTimeChanged(NightDisplayController.LocalTime endTime) {
  /libcore/ojluni/src/test/java/time/test/java/time/temporal/
TestIsoWeekFields.java 31 import java.time.LocalTime;
72 assertEquals(weekField.isSupportedBy(LocalTime.NOON), false);
113 assertEquals(yearField.isSupportedBy(LocalTime.NOON), false);
  /libcore/ojluni/src/main/java/java/time/chrono/
ChronoLocalDate.java 71 import java.time.LocalTime;
510 } else if (query == TemporalQueries.localTime()) {
649 * @param localTime the local time to use, not null
653 default ChronoLocalDateTime<?> atTime(LocalTime localTime) {
654 return ChronoLocalDateTimeImpl.of(this, localTime);
    [all...]
ChronoLocalDateTime.java 72 import java.time.LocalTime;
207 LocalTime toLocalTime();
339 } else if (query == TemporalQueries.localTime()) {
ChronoZonedDateTime.java 71 import java.time.LocalTime;
235 default LocalTime toLocalTime() {
488 } else if (query == TemporalQueries.localTime()) {
Chronology.java 68 import java.time.LocalTime;
457 * {@code LocalTime} from the temporal object.
472 return date(temporal).atTime(LocalTime.from(temporal));
    [all...]

Completed in 620 milliseconds

12 3 4