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

1 2 3 4

  /libcore/ojluni/src/test/java/time/test/java/time/
TestLocalTime.java 67 import java.time.LocalTime;
72 * Test LocalTime.
83 assertImmutable(LocalTime.class);
87 private void check(LocalTime time, int h, int m, int s, int n) {
97 check(LocalTime.MIDNIGHT, 0, 0, 0, 0);
102 assertSame(LocalTime.MIDNIGHT, LocalTime.MIDNIGHT);
103 assertSame(LocalTime.MIDNIGHT, LocalTime.of(0, 0));
108 check(LocalTime.NOON, 12, 0, 0, 0)
    [all...]
TestLocalDateTime.java 68 import java.time.LocalTime;
158 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.with(LocalTime.of(1, 0)).withHour(0);
159 assertSame(t.toLocalTime(), LocalTime.MIDNIGHT);
164 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.with(LocalTime.of(1, 0)).withHour(12);
165 assertSame(t.toLocalTime(), LocalTime.NOON);
176 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.with(LocalTime.of(0, 1)).withMinute(0);
177 assertSame(t.toLocalTime(), LocalTime.MIDNIGHT);
182 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.with(LocalTime.of(12, 1)).withMinute(0);
183 assertSame(t.toLocalTime(), LocalTime.NOON);
194 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.with(LocalTime.of(0, 0, 1)).withSecond(0)
    [all...]
TestOffsetDateTime.java 66 import java.time.LocalTime;
86 TEST_2008_6_30_11_30_59_000000500 = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59, 500), OFFSET_PONE);
110 LocalTime localTime = LocalTime.of(h, m, s, n);
111 LocalDateTime localDateTime = LocalDateTime.of(localDate, localTime);
116 assertSame(a.toLocalTime(), localTime);
125 OffsetDateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSET_PONE);
133 OffsetDateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSET_PONE);
140 OffsetDateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSET_PONE)
    [all...]
TestOffsetDateTime_instants.java 67 import java.time.LocalTime;
112 OffsetDateTime expected = OffsetDateTime.of(LocalDate.of(1970, 1, 1), LocalTime.of(0, 0, 0, 0), ZoneOffset.UTC);
239 OffsetDateTime expected = OffsetDateTime.of(LocalDate.of((int) minYear, 1, 1), LocalTime.of(0, 0, 0, 0), ZoneOffset.UTC);
286 OffsetDateTime dt = OffsetDateTime.of(LocalDate.of(1970, 1, 1), LocalTime.of(0, 0, 0, 0), ZoneOffset.UTC);
293 OffsetDateTime dt = OffsetDateTime.of(LocalDate.of(1970, 1, 1), LocalTime.of(0, 0, 0, 1), ZoneOffset.UTC);
300 OffsetDateTime dt = OffsetDateTime.of(LocalDate.of(1969, 12, 31), LocalTime.of(23, 59, 59, 999999999), ZoneOffset.UTC);
307 OffsetDateTime dt = OffsetDateTime.of(LocalDate.of(1970, 1, 2), LocalTime.of(0, 0, 0, 0), ZoneOffset.UTC);
314 OffsetDateTime dt = OffsetDateTime.of(LocalDate.of(1969, 12, 31), LocalTime.of(0, 0, 0, 0), ZoneOffset.UTC);
322 OffsetDateTime dt = OffsetDateTime.of(LocalDate.of(1970, 1, 1), LocalTime.of(0, 0, 0, 0), ZoneOffset.UTC);
327 OffsetDateTime dt = OffsetDateTime.of(LocalDate.of(1970, 1, 1), LocalTime.of( 0, 0, 0, 1), ZoneOffset.UTC)
    [all...]
  /libcore/ojluni/src/test/java/time/tck/java/time/
TCKLocalTime.java 101 import java.time.LocalTime;
134 * Test LocalTime.
145 private static LocalTime TEST_12_30_40_987654321;
155 TEST_12_30_40_987654321 = LocalTime.of(12, 30, 40, 987654321);
161 TemporalAccessor[] array = {TEST_12_30_40_987654321, LocalTime.MIN, LocalTime.MAX, LocalTime.MIDNIGHT, LocalTime.NOON};
199 private void check(LocalTime test, int h, int m, int s, int n) {
206 assertEquals(LocalTime.of(h, m, s, n), test)
    [all...]
TCKOffsetDateTime.java 117 import java.time.LocalTime;
293 LocalTime expected = LocalTime.MIDNIGHT.plusNanos(123456789L);
360 LocalTime time = LocalTime.of(11, 30, 10, 500);
367 LocalTime time = LocalTime.of(11, 30, 10, 500);
374 OffsetDateTime.of(date, (LocalTime) null, OFFSET_PONE);
380 LocalTime time = LocalTime.of(11, 30, 10, 500)
    [all...]
  /libcore/ojluni/src/test/java/time/tck/java/time/serial/
TCKLocalTimeSerialization.java 68 import java.time.LocalTime;
71 * Test LocalTime serialization.
77 private LocalTime TEST_12_30_40_987654321;
82 TEST_12_30_40_987654321 = LocalTime.of(12, 30, 40, 987654321);
90 assertSerializable(LocalTime.MIN);
91 assertSerializable(LocalTime.MAX);
102 assertSerializedBySer(LocalTime.of(22, 0), bytes);
114 assertSerializedBySer(LocalTime.of(22, 17), bytes);
127 assertSerializedBySer(LocalTime.of(22, 17, 59), bytes);
141 assertSerializedBySer(LocalTime.of(22, 17, 59, 459_000_000), bytes)
    [all...]
  /libcore/ojluni/src/main/java/java/time/
LocalTime.java 100 * {@code LocalTime} is an immutable date-time object that represents a time,
103 * For example, the value "13:45.30.123456789" can be stored in a {@code LocalTime}.
119 public final class LocalTime
120 implements Temporal, TemporalAdjuster, Comparable<LocalTime>, Serializable {
123 * The minimum supported {@code LocalTime}, '00:00'.
126 public static final LocalTime MIN;
128 * The maximum supported {@code LocalTime}, '23:59:59.999999999'.
131 public static final LocalTime MAX;
135 public static final LocalTime MIDNIGHT;
139 public static final LocalTime NOON
    [all...]
OffsetTime.java 64 import static java.time.LocalTime.NANOS_PER_HOUR;
65 import static java.time.LocalTime.NANOS_PER_MINUTE;
66 import static java.time.LocalTime.NANOS_PER_SECOND;
67 import static java.time.LocalTime.SECONDS_PER_DAY;
119 * This combines {@link LocalTime#MIN} and {@link ZoneOffset#MAX}.
122 public static final OffsetTime MIN = LocalTime.MIN.atOffset(ZoneOffset.MAX);
127 * This combines {@link LocalTime#MAX} and {@link ZoneOffset#MIN}.
130 public static final OffsetTime MAX = LocalTime.MAX.atOffset(ZoneOffset.MIN);
140 private final LocalTime time;
206 public static OffsetTime of(LocalTime time, ZoneOffset offset)
    [all...]
LocalDateTime.java 64 import static java.time.LocalTime.HOURS_PER_DAY;
65 import static java.time.LocalTime.MICROS_PER_DAY;
66 import static java.time.LocalTime.MILLIS_PER_DAY;
67 import static java.time.LocalTime.MINUTES_PER_DAY;
68 import static java.time.LocalTime.NANOS_PER_DAY;
69 import static java.time.LocalTime.NANOS_PER_HOUR;
70 import static java.time.LocalTime.NANOS_PER_MINUTE;
71 import static java.time.LocalTime.NANOS_PER_SECOND;
72 import static java.time.LocalTime.SECONDS_PER_DAY;
135 * This combines {@link LocalDate#MIN} and {@link LocalTime#MIN}
    [all...]
  /libcore/ojluni/src/test/java/time/tck/java/time/temporal/
TCKChronoUnit.java 80 import java.time.LocalTime;
142 {HALF_DAYS, LocalTime.of(1, 2, 3, 400), true, 1, LocalTime.of(13, 2, 3, 400)},
143 {HOURS, LocalTime.of(1, 2, 3, 400), true, 1, LocalTime.of(2, 2, 3, 400)},
144 {MINUTES, LocalTime.of(1, 2, 3, 400), true, 1, LocalTime.of(1, 3, 3, 400)},
145 {SECONDS, LocalTime.of(1, 2, 3, 400), true, 1, LocalTime.of(1, 2, 4, 400)},
146 {MICROS, LocalTime.of(1, 2, 3, 400), true, 1, LocalTime.of(1, 2, 3, 1000 + 400)}
    [all...]
TCKChronoField.java 104 import java.time.LocalTime;
210 {HOUR_OF_DAY, LocalTime.of(5, 4, 3, 200), true, 5},
213 {MINUTE_OF_DAY, LocalTime.of(5, 4, 3, 200), true, 5*60 + 4},
215 {MINUTE_OF_HOUR, LocalTime.of(5, 4, 3, 200), true, 4},
218 {SECOND_OF_DAY, LocalTime.of(5, 4, 3, 200), true, 5*3600 + 4*60 + 3},
220 {SECOND_OF_MINUTE, LocalTime.of(5, 4, 3, 200), true, 3},
223 {NANO_OF_SECOND, LocalTime.of(5, 4, 3, 200), true, 200},
226 {YEAR, LocalTime.of(5, 4, 3, 200), false, -1},
227 {MONTH_OF_YEAR, LocalTime.of(5, 4, 3, 200), false, -1},
228 {DAY_OF_MONTH, LocalTime.of(5, 4, 3, 200), false, -1}
    [all...]
  /libcore/ojluni/src/test/java/time/tck/java/time/format/
TCKDateTimeParseResolver.java 100 import java.time.LocalTime;
158 assertEquals(accessor.query(TemporalQueries.localTime()), null);
197 assertEquals(accessor.query(TemporalQueries.localTime()), null);
229 assertEquals(accessor.query(TemporalQueries.localTime()), null);
263 assertEquals(accessor.query(TemporalQueries.localTime()), null);
289 assertEquals(accessor.query(TemporalQueries.localTime()), null);
296 {HOUR_OF_DAY, 8, LocalTime.of(8, 0)},
297 {CLOCK_HOUR_OF_DAY, 8, LocalTime.of(8, 0)},
298 {CLOCK_HOUR_OF_DAY, 24, LocalTime.of(0, 0)},
299 {MINUTE_OF_DAY, 650, LocalTime.of(10, 50)}
    [all...]
TCKLocalizedPrinterParser.java 67 import java.time.LocalTime;
156 {LocalTime.of(11, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.UK},
157 {LocalTime.of(11, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.US},
158 {LocalTime.of(11, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.FRANCE},
159 {LocalTime.of(11, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.JAPAN},
161 {LocalTime.of(11, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.UK},
162 {LocalTime.of(11, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.US},
163 {LocalTime.of(11, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.FRANCE},
164 {LocalTime.of(11, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.JAPAN},
166 // these localized patterns include "z" which isn't available from LocalTime
    [all...]
  /libcore/ojluni/src/main/java/java/time/temporal/
TemporalUnit.java 66 import java.time.LocalTime;
169 if (temporal instanceof LocalTime) {
TemporalQueries.java 69 import java.time.LocalTime;
109 * <li> a LocalTime,
148 * {@code LocalTime} returns null<br>
178 * {@code LocalTime}, will return null.
182 * {@code LocalTime} returns null (does not represent a date)<br>
224 * {@code LocalTime} returns {@code NANOS}<br>
318 * A query for {@code LocalTime} returning null if not found.
325 * field and uses it to create a {@code LocalTime}.
328 * {@code TemporalQuery} via a method reference, {@code LocalTime::from}.
329 * This query and {@code LocalTime::from} will return the same result if th
    [all...]
  /libcore/ojluni/src/test/java/time/tck/java/time/zone/serial/
TCKZoneOffsetTransitionRuleSerialization.java 63 import java.time.LocalTime;
78 private static final LocalTime TIME_0100 = LocalTime.of(1, 0);
99 Month.MARCH, 20, DayOfWeek.FRIDAY, LocalTime.MIDNIGHT, true, TimeDefinition.UTC,
107 Month.MARCH, 20, DayOfWeek.WEDNESDAY, LocalTime.of(13, 34, 56), false, TimeDefinition.STANDARD,
  /frameworks/base/core/java/com/android/internal/app/
NightDisplayController.java 64 * @see #setCustomStartTime(LocalTime)
65 * @see #setCustomEndTime(LocalTime)
193 public @NonNull LocalTime getCustomStartTime() {
205 return LocalTime.valueOf(startTimeValue);
215 public boolean setCustomStartTime(@NonNull LocalTime startTime) {
227 public @NonNull LocalTime getCustomEndTime() {
239 return LocalTime.valueOf(endTimeValue);
249 public boolean setCustomEndTime(@NonNull LocalTime endTime) {
380 public static class LocalTime {
391 public LocalTime(int hourOfDay, int minute)
    [all...]
  /libcore/ojluni/src/test/java/time/tck/java/time/chrono/
TCKChronoLocalDateTime.java 70 import java.time.LocalTime;
116 ChronoLocalDateTime<?> cdt = chrono.date(refDate).atTime(LocalTime.NOON);
119 ChronoLocalDateTime<?> cdt2 = chrono2.date(refDate).atTime(LocalTime.NOON);
140 ChronoLocalDateTime<?> cdt = chrono.date(refDate).atTime(LocalTime.NOON);
143 ChronoLocalDateTime<?> cdt2 = chrono2.date(refDate).atTime(LocalTime.NOON);
164 ChronoLocalDateTime<?> cdt = chrono.date(refDate).atTime(LocalTime.NOON);
167 ChronoLocalDateTime<?> cdt2 = chrono2.date(refDate).atTime(LocalTime.NOON);
188 ChronoLocalDateTime<?> cdt = chrono.date(refDate).atTime(LocalTime.NOON);
191 ChronoLocalDateTime<?> cdt2 = chrono2.date(refDate).atTime(LocalTime.NOON);
212 ChronoLocalDateTime<?> cdt = chrono.date(refDate).atTime(LocalTime.NOON)
    [all...]
TCKChronoZonedDateTime.java 69 import java.time.LocalTime;
118 ChronoZonedDateTime<?> czdt = chrono.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC);
121 ChronoZonedDateTime<?> czdt2 = chrono2.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC);
141 ChronoZonedDateTime<?> czdt = chrono.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC);
144 ChronoZonedDateTime<?> czdt2 = chrono2.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC);
165 ChronoZonedDateTime<?> czdt = chrono.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC);
168 ChronoZonedDateTime<?> czdt2 = chrono2.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC);
189 ChronoZonedDateTime<?> czdt = chrono.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC);
192 ChronoZonedDateTime<?> czdt2 = chrono2.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC);
213 ChronoZonedDateTime<?> czdt = chrono.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC)
    [all...]
  /libcore/ojluni/src/main/java/java/time/zone/
ZoneOffsetTransitionRule.java 76 import java.time.LocalTime;
128 private final LocalTime time;
175 LocalTime time,
190 if (timeEndOfDay && time.equals(LocalTime.MIDNIGHT) == false) {
217 LocalTime time,
351 LocalTime time = (timeByte == 31 ? LocalTime.ofSecondOfDay(in.readInt()) : LocalTime.of(timeByte % 24, 0));
419 public LocalTime getLocalTime() {
  /libcore/ojluni/src/main/java/java/time/chrono/
ChronoLocalDateTimeImpl.java 72 import java.time.LocalTime;
163 private final transient LocalTime time;
173 static <R extends ChronoLocalDate> ChronoLocalDateTimeImpl<R> of(R date, LocalTime time) {
202 private ChronoLocalDateTimeImpl(D date, LocalTime time) {
217 private ChronoLocalDateTimeImpl<D> with(Temporal newDate, LocalTime newTime) {
233 public LocalTime toLocalTime() {
281 } else if (adjuster instanceof LocalTime) {
282 return with(date, (LocalTime) adjuster);
359 LocalTime newTime = (newNoD == curNoD ? time : LocalTime.ofNanoOfDay(newNoD))
    [all...]
  /packages/apps/Settings/src/com/android/settings/display/
NightDisplayPreference.java 61 private String getFormattedTimeString(NightDisplayController.LocalTime localTime) {
64 c.set(Calendar.HOUR_OF_DAY, localTime.hourOfDay);
65 c.set(Calendar.MINUTE, localTime.minute);
119 public void onCustomStartTimeChanged(NightDisplayController.LocalTime startTime) {
124 public void onCustomEndTimeChanged(NightDisplayController.LocalTime endTime) {
NightDisplaySettings.java 142 final NightDisplayController.LocalTime initialTime;
154 final NightDisplayController.LocalTime time =
155 new NightDisplayController.LocalTime(hourOfDay, minute);
199 private String getFormattedTimeString(NightDisplayController.LocalTime localTime) {
202 c.set(Calendar.HOUR_OF_DAY, localTime.hourOfDay);
203 c.set(Calendar.MINUTE, localTime.minute);
219 public void onCustomStartTimeChanged(NightDisplayController.LocalTime startTime) {
224 public void onCustomEndTimeChanged(NightDisplayController.LocalTime endTime) {
  /external/fmtlib/fmt/
time.h 65 // Thread-safe replacement for std::localtime
66 inline std::tm localtime(std::time_t time) { function in namespace:fmt
67 struct LocalTime {
71 LocalTime(std::time_t t): time_(t) {}
89 std::tm *tm = std::localtime(&time_);
94 LocalTime lt(time);

Completed in 709 milliseconds

1 2 3 4