Home
last modified time | relevance | path

Searched refs:DayOfWeek (Results 1 – 25 of 30) sorted by relevance

12

/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKDayOfWeek.java62 import static java.time.DayOfWeek.MONDAY;
63 import static java.time.DayOfWeek.SUNDAY;
64 import static java.time.DayOfWeek.WEDNESDAY;
70 import java.time.DayOfWeek;
130 DayOfWeek test = DayOfWeek.of(i); in test_factory_int_singleton()
132 assertSame(DayOfWeek.of(i), test); in test_factory_int_singleton()
138 DayOfWeek.of(0); in test_factory_int_valueTooLow()
143 DayOfWeek.of(8); in test_factory_int_valueTooHigh()
149 assertEquals(DayOfWeek.from(LocalDate.of(2011, 6, 6)), DayOfWeek.MONDAY); in test_factory_CalendricalObject()
154 DayOfWeek.from(LocalTime.of(12, 30)); in test_factory_CalendricalObject_invalid_noDerive()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneOffsetTransitionRule.java64 import java.time.DayOfWeek;
92 null, 20, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, in test_factory_nullMonth()
99 Month.MARCH, 20, DayOfWeek.SUNDAY, null, false, TimeDefinition.WALL, in test_factory_nullTime()
106 Month.MARCH, 20, DayOfWeek.SUNDAY, TIME_0100, false, null, in test_factory_nullTimeDefinition()
113 Month.MARCH, 20, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, in test_factory_nullStandardOffset()
120 Month.MARCH, 20, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, in test_factory_nullOffsetBefore()
127 Month.MARCH, 20, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, in test_factory_nullOffsetAfter()
134 Month.MARCH, -29, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, in test_factory_invalidDayOfMonthIndicator_tooSmall()
141 Month.MARCH, 0, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, in test_factory_invalidDayOfMonthIndicator_zero()
148 Month.MARCH, 32, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, in test_factory_invalidDayOfMonthIndicator_tooLarge()
[all …]
DTCKZoneRules.java71 import java.time.DayOfWeek;
377 assertEquals(in.getDayOfWeek(), DayOfWeek.SUNDAY); in test_London_getTransitionRules()
388 assertEquals(out.getDayOfWeek(), DayOfWeek.SUNDAY); in test_London_getTransitionRules()
1013 DayOfWeek.MONDAY, in test_of()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKWeekFields.java75 import java.time.DayOfWeek;
95 public void test_of_DayOfWeek_int_singleton(DayOfWeek firstDayOfWeek, int minDays) { in test_of_DayOfWeek_int_singleton()
104 public void test_basics(DayOfWeek firstDayOfWeek, int minDays) { in test_basics()
127 assertEquals(date.get(WeekFields.of(DayOfWeek.MONDAY, 1).dayOfWeek()), 1); in test_dayOfWeekField_simpleGet()
128 assertEquals(date.get(WeekFields.of(DayOfWeek.MONDAY, 7).dayOfWeek()), 1); in test_dayOfWeekField_simpleGet()
130 assertEquals(date.get(WeekFields.of(DayOfWeek.SUNDAY, 1).dayOfWeek()), 2); in test_dayOfWeekField_simpleGet()
131 assertEquals(date.get(WeekFields.of(DayOfWeek.SUNDAY, 7).dayOfWeek()), 2); in test_dayOfWeekField_simpleGet()
132 assertEquals(date.get(WeekFields.of(DayOfWeek.SATURDAY, 1).dayOfWeek()), 3); in test_dayOfWeekField_simpleGet()
133 assertEquals(date.get(WeekFields.of(DayOfWeek.FRIDAY, 1).dayOfWeek()), 4); in test_dayOfWeekField_simpleGet()
134 assertEquals(date.get(WeekFields.of(DayOfWeek.TUESDAY, 1).dayOfWeek()), 7); in test_dayOfWeekField_simpleGet()
[all …]
DTCKTemporalAdjusters.java62 import static java.time.DayOfWeek.MONDAY;
63 import static java.time.DayOfWeek.TUESDAY;
72 import java.time.DayOfWeek;
338 …public void test_dayOfWeekInMonth_positive(int year, int month, DayOfWeek dow, LocalDate expected)… in test_dayOfWeekInMonth_positive()
367 public void test_dayOfWeekInMonth_zero(int year, int month, DayOfWeek dow, LocalDate expected) { in test_dayOfWeekInMonth_zero()
394 …public void test_dayOfWeekInMonth_negative(int year, int month, DayOfWeek dow, LocalDate expected)… in test_dayOfWeekInMonth_negative()
418 public void test_firstInMonth(int year, int month, DayOfWeek dow, LocalDate expected) { in test_firstInMonth()
440 public void test_lastInMonth(int year, int month, DayOfWeek dow, LocalDate expected) { in test_lastInMonth()
467 for (DayOfWeek dow : DayOfWeek.values()) { in test_next()
506 for (DayOfWeek dow : DayOfWeek.values()) {
[all …]
DTCKIsoFields.java59 import static java.time.DayOfWeek.FRIDAY;
60 import static java.time.DayOfWeek.MONDAY;
61 import static java.time.DayOfWeek.SATURDAY;
62 import static java.time.DayOfWeek.SUNDAY;
63 import static java.time.DayOfWeek.THURSDAY;
64 import static java.time.DayOfWeek.TUESDAY;
65 import static java.time.DayOfWeek.WEDNESDAY;
71 import java.time.DayOfWeek;
321 public void test_WOWBY(LocalDate date, DayOfWeek dow, int week, int wby) { in test_WOWBY()
336 public void test_WBY(LocalDate date, DayOfWeek dow, int week, int wby) { in test_WBY()
[all …]
/libcore/ojluni/src/main/java/java/time/
DDayOfWeek.java109 public enum DayOfWeek implements TemporalAccessor, TemporalAdjuster { enum
149 private static final DayOfWeek[] ENUMS = DayOfWeek.values();
163 public static DayOfWeek of(int dayOfWeek) { in of()
187 public static DayOfWeek from(TemporalAccessor temporal) { in from()
188 if (temporal instanceof DayOfWeek) { in from()
189 return (DayOfWeek) temporal; in from()
365 public DayOfWeek plus(long days) { in plus()
381 public DayOfWeek minus(long days) { in minus()
DLocalDate.java798 public DayOfWeek getDayOfWeek() { in getDayOfWeek()
800 return DayOfWeek.of(dow0 + 1); in getDayOfWeek()
DOffsetDateTime.java803 public DayOfWeek getDayOfWeek() { in getDayOfWeek()
/libcore/ojluni/src/main/java/java/time/temporal/
DTemporalAdjusters.java71 import java.time.DayOfWeek;
290 public static TemporalAdjuster firstInMonth(DayOfWeek dayOfWeek) { in firstInMonth()
310 public static TemporalAdjuster lastInMonth(DayOfWeek dayOfWeek) { in lastInMonth()
346 public static TemporalAdjuster dayOfWeekInMonth(int ordinal, DayOfWeek dayOfWeek) { in dayOfWeekInMonth()
386 public static TemporalAdjuster next(DayOfWeek dayOfWeek) {
412 public static TemporalAdjuster nextOrSame(DayOfWeek dayOfWeek) {
440 public static TemporalAdjuster previous(DayOfWeek dayOfWeek) {
466 public static TemporalAdjuster previousOrSame(DayOfWeek dayOfWeek) {
DWeekFields.java84 import java.time.DayOfWeek;
205 public static final WeekFields ISO = new WeekFields(DayOfWeek.MONDAY, 4);
214 public static final WeekFields SUNDAY_START = WeekFields.of(DayOfWeek.SUNDAY, 1);
242 private final DayOfWeek firstDayOfWeek;
291 DayOfWeek dow = DayOfWeek.SUNDAY.plus(weekData.firstDayOfWeek - 1); in of()
315 public static WeekFields of(DayOfWeek firstDayOfWeek, int minimalDaysInFirstWeek) { in of()
334 private WeekFields(DayOfWeek firstDayOfWeek, int minimalDaysInFirstWeek) { in WeekFields()
391 public DayOfWeek getFirstDayOfWeek() { in getFirstDayOfWeek()
DIsoFields.java62 import static java.time.DayOfWeek.THURSDAY;
63 import static java.time.DayOfWeek.WEDNESDAY;
DChronoField.java61 import java.time.DayOfWeek;
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKWeekFieldsSerialization.java71 import java.time.DayOfWeek;
83 …public void test_serializable_singleton(DayOfWeek firstDayOfWeek, int minDays) throws IOException,… in test_serializable_singleton()
93 for (DayOfWeek firstDayOfWeek : DayOfWeek.values()) { in data_weekFields()
103 WeekFields wf = WeekFields.of(DayOfWeek.MONDAY, 7); in test_invalid_serialform()
115 assertEquals(o, WeekFields.of(DayOfWeek.MONDAY, 5), "Should be MONDAY, min = 5"); in test_invalid_serialform()
/libcore/ojluni/src/test/java/time/tck/java/time/zone/serial/
DTCKZoneOffsetTransitionRuleSerialization.java62 import java.time.DayOfWeek;
99 Month.MARCH, 20, DayOfWeek.FRIDAY, LocalTime.MIDNIGHT, true, TimeDefinition.UTC, in test_serialization_endOfDay()
107 … Month.MARCH, 20, DayOfWeek.WEDNESDAY, LocalTime.of(13, 34, 56), false, TimeDefinition.STANDARD, in test_serialization_unusualTime()
115 Month.MARCH, 20, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, in test_serialization_floatingWeek()
123 Month.MARCH, -1, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, in test_serialization_floatingWeekBackwards()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestTextPrinter.java70 import java.time.DayOfWeek;
213 {Locale.US, "e", "1", DayOfWeek.SUNDAY}, in providerDayOfWeekData()
214 {Locale.US, "ee", "01", DayOfWeek.SUNDAY}, in providerDayOfWeekData()
215 {Locale.US, "c", "1", DayOfWeek.SUNDAY}, in providerDayOfWeekData()
217 {Locale.UK, "e", "1", DayOfWeek.MONDAY}, in providerDayOfWeekData()
218 {Locale.UK, "ee", "01", DayOfWeek.MONDAY}, in providerDayOfWeekData()
219 {Locale.UK, "c", "1", DayOfWeek.MONDAY}, in providerDayOfWeekData()
253 …public void test_formatDayOfWeek(Locale locale, String pattern, String expected, DayOfWeek dayOfWe… in test_formatDayOfWeek()
DTestTextParser.java70 import java.time.DayOfWeek;
225 {Locale.US, "e", "1", DayOfWeek.SUNDAY}, in providerDayOfWeekData()
226 {Locale.US, "ee", "01", DayOfWeek.SUNDAY}, in providerDayOfWeekData()
227 {Locale.US, "c", "1", DayOfWeek.SUNDAY}, in providerDayOfWeekData()
229 {Locale.UK, "e", "1", DayOfWeek.MONDAY}, in providerDayOfWeekData()
230 {Locale.UK, "ee", "01", DayOfWeek.MONDAY}, in providerDayOfWeekData()
231 {Locale.UK, "c", "1", DayOfWeek.MONDAY}, in providerDayOfWeekData()
271 …public void test_parseDayOfWeekText(Locale locale, String pattern, String input, DayOfWeek expecte… in test_parseDayOfWeekText()
274 assertEquals(DayOfWeek.from(formatter.parse(input, pos)), expected); in test_parseDayOfWeekText()
DTestDateTimeFormatter.java68 import java.time.DayOfWeek;
112 assertGoodErrorDate(DayOfWeek::from, "DayOfWeek"); in test_parse_errorMessage()
127 assertGoodErrorTime(DayOfWeek::from, "DayOfWeek"); in test_parse_errorMessage()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestIsoChronoImpl.java65 import java.time.DayOfWeek;
124 for (DayOfWeek firstDayOfWeek : DayOfWeek.values()) { in test_DayOfWeek_IsoChronology_vsCalendar()
173 private DayOfWeek toISOfromCalendarDOW(int i) { in toISOfromCalendarDOW()
174 return DayOfWeek.of(Math.floorMod(i - 2, 7) + 1); in toISOfromCalendarDOW()
DTestUmmAlQuraChronology.java38 import java.time.DayOfWeek;
488 assertEquals(date.get(WeekFields.of(DayOfWeek.SATURDAY, 7).dayOfWeek()), satStart); in test_dayOfWeek()
489 assertEquals(date.get(WeekFields.of(DayOfWeek.SUNDAY, 7).dayOfWeek()), sunStart); in test_dayOfWeek()
642 …assertEquals(DayOfWeek.SATURDAY.adjustInto(HijrahDate.of(1434, 6, 28)), HijrahDate.of(1434, 7, 1)); in test_adjustInto()
643 …assertEquals(DayOfWeek.SATURDAY.adjustInto(HijrahDate.of(1432, 4, 13)), HijrahDate.of(1432, 4, 14)… in test_adjustInto()
644 …assertEquals(DayOfWeek.SATURDAY.adjustInto(HijrahDate.of(1433, 11, 29)), HijrahDate.of(1433, 12, 4… in test_adjustInto()
645 …assertEquals(DayOfWeek.SATURDAY.adjustInto(HijrahDate.of(1434, 5, 10)), HijrahDate.of(1434, 5, 11)… in test_adjustInto()
646 …assertEquals(DayOfWeek.SATURDAY.adjustInto(HijrahDate.of(1434, 9, 11)), HijrahDate.of(1434, 9, 12)… in test_adjustInto()
/libcore/ojluni/src/main/java/java/time/zone/
DZoneOffsetTransitionRule.java73 import java.time.DayOfWeek;
124 private final DayOfWeek dow;
174 DayOfWeek dayOfWeek, in of()
216 DayOfWeek dayOfWeek, in ZoneOffsetTransitionRule()
345 DayOfWeek dow = dowByte == 0 ? null : DayOfWeek.of(dowByte); in readExternal()
407 public DayOfWeek getDayOfWeek() { in getDayOfWeek()
DIcuZoneRulesProvider.java31 import java.time.DayOfWeek;
231 DayOfWeek dayOfWeek = DayOfWeek.SATURDAY.plus(dateTimeRule.getRuleDayOfWeek()); in toZoneOffsetTransitionRule()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatter.java77 import java.time.DayOfWeek;
288 {null, null, DayOfWeek.MONDAY, "::::"}, in data_format_withZone_withChronology()
298 {IsoChronology.INSTANCE, null, DayOfWeek.MONDAY, "::::ISO"}, in data_format_withZone_withChronology()
308 {null, ZONE_PARIS, DayOfWeek.MONDAY, ":::Europe/Paris:"}, in data_format_withZone_withChronology()
318 {null, OFFSET_PTHREE, DayOfWeek.MONDAY, ":::+03:00:"}, in data_format_withZone_withChronology()
328 … {ThaiBuddhistChronology.INSTANCE, null, DayOfWeek.MONDAY, null}, // not a complete date in data_format_withZone_withChronology()
338 … {ThaiBuddhistChronology.INSTANCE, null, DayOfWeek.MONDAY, null}, // not a complete date in data_format_withZone_withChronology()
/libcore/ojluni/src/main/java/java/time/chrono/
DAbstractChronology.java90 import java.time.DayOfWeek;
610 …ChronoLocalDate date = date(y, moy, 1).plus((aw - 1) * 7, DAYS).with(nextOrSame(DayOfWeek.of(dow))… in resolveYMAD()
642 …ChronoLocalDate date = dateYearDay(y, 1).plus((aw - 1) * 7, DAYS).with(nextOrSame(DayOfWeek.of(dow… in resolveYAD()
658 return date.with(nextOrSame(DayOfWeek.of((int) dow))); in resolveAligned()
/libcore/ojluni/annotations/hiddenapi/java/time/
DOffsetDateTime.java205 public java.time.DayOfWeek getDayOfWeek() { in getDayOfWeek()

12