Home
last modified time | relevance | path

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

12

/external/icu/icu4c/source/i18n/
Dgregoimp.cpp97 int32_t& dom, int32_t& dow, int32_t& doy) { in dayToFields() argument
120 dow = (int32_t) uprv_fmod(day + 1, 7); in dayToFields()
121 dow += (dow < 0) ? (UCAL_SUNDAY + 7) : UCAL_SUNDAY; in dayToFields()
135 int32_t& dom, int32_t& dow, int32_t& doy, int32_t& mid) { in timeToFields() argument
139 dayToFields(day, year, month, dom, dow, doy); in timeToFields()
143 int32_t dow; in dayOfWeek() local
144 ClockMath::floorDivide(day + UCAL_THURSDAY, 7, dow); in dayOfWeek()
145 return (dow == 0) ? UCAL_SATURDAY : dow; in dayOfWeek()
Dgregoimp.h181 int32_t& dom, int32_t& dow, int32_t& doy);
193 int32_t& dom, int32_t& dow);
207 int32_t& dom, int32_t& dow, int32_t& doy, int32_t& mid);
274 int32_t& dom, int32_t& dow) { in dayToFields() argument
276 dayToFields(day,year,month,dom,dow,doy_unused); in dayToFields()
Dbasictz.cpp161 int32_t year, month, dom, dow, doy, mid; in getSimpleRulesNear() local
166 year, month, dom, dow, doy, mid); in getSimpleRulesNear()
169 … DateTimeRule *dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); in getSimpleRulesNear()
193 year, month, dom, dow, doy, mid); in getSimpleRulesNear()
196 … dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); in getSimpleRulesNear()
224 year, month, dom, dow, doy, mid); in getSimpleRulesNear()
226 … dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); in getSimpleRulesNear()
479 int32_t year, month, dom, dow, doy, mid; in getTimeZoneRulesAfter() local
480 Grego::timeToFields(tzt.getTime(), year, month, dom, dow, doy, mid); in getTimeZoneRulesAfter()
Dolsontz.cpp330 int32_t dom, uint8_t dow, in getOffset() argument
338 return getOffset(era, year, month, dom, dow, millis, in getOffset()
348 int32_t dom, uint8_t dow, in getOffset() argument
360 || dow < UCAL_SUNDAY in getOffset()
361 || dow > UCAL_SATURDAY in getOffset()
375 return finalZone->getOffset(era, year, month, dom, dow, in getOffset()
438 int32_t year, month, dom, dow; in printTime() local
442 Grego::dayToFields(days, year, month, dom, dow); in printTime()
570 int32_t year, month, dom, dow, doy, mid; in useDaylightTime() local
571 Grego::timeToFields(current, year, month, dom, dow, doy, mid); in useDaylightTime()
Dtzrule.cpp299 int32_t dow = Grego::dayOfWeek(ruleDay); in getStartInYear() local
300 int32_t delta = fDateTimeRule->getRuleDayOfWeek() - dow; in getStartInYear()
356 int32_t year, month, dom, dow, doy, mid; in getNextStart() local
357 Grego::timeToFields(base, year, month, dom, dow, doy, mid); in getNextStart()
380 int32_t year, month, dom, dow, doy, mid; in getPreviousStart() local
381 Grego::timeToFields(base, year, month, dom, dow, doy, mid); in getPreviousStart()
Dvtzone.cpp190 int32_t year, month, dom, dow, doy, mid; in getDateTimeString() local
191 Grego::timeToFields(time, year, month, dom, dow, doy, mid); in getDateTimeString()
380 static void parseRRULE(const UnicodeString& rrule, int32_t& month, int32_t& dow, int32_t& wim, in parseRRULE() argument
388 dow = 0; in parseRRULE()
475 dow = wday + 1; in parseRRULE()
815 int32_t month = -1, dom = 0, dow = 0; in toWallTimeRule() local
828 dow = rule->getRuleDayOfWeek(); in toWallTimeRule()
856 dow += dshift; in toWallTimeRule()
857 if (dow < UCAL_SUNDAY) { in toWallTimeRule()
858 dow = UCAL_SATURDAY; in toWallTimeRule()
[all …]
Dcalendar.cpp1575 int32_t dow = julianDayToDayOfWeek(julianDay); in computeGregorianAndDOWFields() local
1576 internalSet(UCAL_DAY_OF_WEEK,dow); in computeGregorianAndDOWFields()
1579 int32_t dowLocal = dow - getFirstDayOfWeek() + 1; in computeGregorianAndDOWFields()
1893 int32_t dow = internalGet(UCAL_DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
1894 if (dow < 0) dow += 7; in roll()
1898 int32_t fdm = (dow - internalGet(UCAL_DAY_OF_MONTH) + 1) % 7; in roll()
1914 int32_t ldm = (monthLen - internalGet(UCAL_DAY_OF_MONTH) + dow) % 7; in roll()
1951 int32_t dow = internalGet(UCAL_DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
1952 if (dow < 0) dow += 7; in roll()
1956 int32_t fdy = (dow - internalGet(UCAL_DAY_OF_YEAR) + 1) % 7; in roll()
[all …]
Dgregocal.cpp973 int32_t dow = internalGet(UCAL_DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
974 if (dow < 0) in roll()
975 dow += 7; in roll()
982 int32_t fdm = (dow - dom + 1) % 7; in roll()
999 int32_t ldm = (monthLen - dom + dow) % 7; in roll()
Dsimpletz.cpp516 int32_t year, month, dom, dow; in getOffsetFromLocal() local
520 Grego::dayToFields(day, year, month, dom, dow); in getOffsetFromLocal()
523 (uint8_t) dow, millis, in getOffsetFromLocal()
549 Grego::dayToFields(day, year, month, dom, dow); in getOffsetFromLocal()
551 (uint8_t) dow, millis, in getOffsetFromLocal()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DTestCase.java70 public static String dowToString(int dow) { in dowToString() argument
71 --dow; in dowToString()
72 return (dow < 0 || dow > 6) ? in dowToString()
73 ("<DOW " + dow + ">") : DOW_NAMES[dow]; in dowToString()
DCompatibilityTest.java99 dom = cal.get(Calendar.DATE), dow = cal.get(Calendar.DAY_OF_WEEK); in TestGregorianChangeover() local
101 i + " days: " + y + "/" + mon + "/" + dom + " dow=" + dow); in TestGregorianChangeover()
102 if (y != 1582 || mon != MON[j] || dom != DOM[j] || dow != DOW[j]) in TestGregorianChangeover()
474 int dow = cal.get(Calendar.DAY_OF_WEEK); in dowTest() local
477 if (dow < min || dow > max) errln("FAIL: Day of week " + dow + " out of range"); in dowTest()
478 if (dow != Calendar.SUNDAY) { in dowTest()
479 errln("FAIL2: Day of week should be SUNDAY; is " + dow + ": " + cal.getTime()); in dowTest()
DCalendarRegression.java349 int dow = cal.get(Calendar.DAY_OF_WEEK); in dowTest() local
355 if (dow < min || dow > max) in dowTest()
356 errln("FAIL: Day of week " + dow + " out of range"); in dowTest()
357 if (dow != Calendar.SUNDAY) in dowTest()
358 errln("FAIL: Day of week should be SUNDAY Got " + dow); in dowTest()
481 int dow = a.get(Calendar.DAY_OF_WEEK); in Test4095407() local
482 if (dow != Calendar.THURSDAY) in Test4095407()
483 errln("Fail: Want THURSDAY Got " + dow); in Test4095407()
679 int dow = ((Integer)DISAM[i+2]).intValue(); in Test4103271() local
684 testCal.set(Calendar.DAY_OF_WEEK, dow); in Test4103271()
[all …]
DIBMCalendarTest.java658 int dow; in TestJB1684() field in IBMCalendarTest.TestData
663 int womyear, int wommon, int wom, int dow, in TestJB1684() argument
671 this.dow = dow; in TestJB1684()
729 cal.set(Calendar.DAY_OF_WEEK, test.dow); in TestJB1684()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DCalendar.java2637 int dow = firstDayOfWeek; in prepareGetActual() local
2639 dow = (dow + 6) % 7; // set to last DOW in prepareGetActual()
2640 if (dow < SUNDAY) { in prepareGetActual()
2641 dow += 7; in prepareGetActual()
2644 set(DAY_OF_WEEK, dow); in prepareGetActual()
2987 int dow = internalGet(DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
2988 if (dow < 0) dow += 7; in roll()
2992 int fdm = (dow - internalGet(DAY_OF_MONTH) + 1) % 7; in roll()
3008 int ldm = (monthLen - internalGet(DAY_OF_MONTH) + dow) % 7; in roll()
3045 int dow = internalGet(DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
[all …]
DAnnualTimeZoneRule.java145 int dow = Grego.dayOfWeek(ruleDay); in getStartInYear() local
146 int delta = dateTimeRule.getRuleDayOfWeek() - dow; in getStartInYear()
DVTimeZone.java1736 int month = -1, dom = 0, dow = 0, dtype = -1; in toWallTimeRule() local
1748 dow = rule.getRuleDayOfWeek(); in toWallTimeRule()
1777 dow += dshift; in toWallTimeRule()
1778 if (dow < Calendar.SUNDAY) { in toWallTimeRule()
1779 dow = Calendar.SATURDAY; in toWallTimeRule()
1780 } else if (dow > Calendar.SATURDAY) { in toWallTimeRule()
1781 dow = Calendar.SUNDAY; in toWallTimeRule()
1790 modifiedRule = new DateTimeRule(month, dom, dow, in toWallTimeRule()
/external/icu/icu4c/source/tools/tzcode/
Dtz2icu.cpp768 int32_t dow; member
816 dow = _dow; in set()
829 if (mode != DOM && (dow < 0 || dow >= 7)) { in set()
830 os << "Invalid input day of week " << dow; in set()
842 << month << dom << dow << time in set()
886 return (mode == DOM) ? 0 : -(dow+1); in stz_dow()
960 int32_t month, dom, dow, time, offset; in readFinalZonesAndRules() local
962 in >> id >> mode >> month >> dom >> dow >> time >> isstd >> isgmt >> offset; in readFinalZonesAndRules()
966 fr.part[p].set(id, mode, month, dom, dow, time, isstd, isgmt, offset); in readFinalZonesAndRules()
Dlocaltime.c837 int d, m1, yy0, yy1, yy2, dow; in transtime() local
878 dow = ((26 * m1 - 2) / 10 + in transtime()
880 if (dow < 0) in transtime()
881 dow += DAYSPERWEEK; in transtime()
888 d = rulep->r_day - dow; in transtime()
/external/icu/icu4c/source/test/intltest/
Dcalregts.cpp585 int32_t dow = cal->get(UCAL_DAY_OF_WEEK, status); in dowTest() local
591 if (dow < min || dow > max) in dowTest()
592 errln("FAIL: Day of week %d out of range [%d,%d]\n", dow, min, max); in dowTest()
593 if (dow != UCAL_SUNDAY) in dowTest()
594 errln(UnicodeString("FAIL: Day of week should be SUNDAY Got ") + dow); in dowTest()
846 int32_t dow = a->get(UCAL_DAY_OF_WEEK, status); in test4095407() local
847 if (dow != UCAL_THURSDAY) in test4095407()
848 errln(UnicodeString("Fail: Want THURSDAY Got ") + dow); in test4095407()
1116 int32_t dow = DISAM_int[i+3]; in test4103271() local
1121 testCal->set(UCAL_DAY_OF_WEEK, dow); in test4103271()
[all …]
Dcaltest.cpp711 int32_t dow = cal->get(UCAL_DAY_OF_WEEK, status); in dowTest() local
715 if (dow < min || in dowTest()
716 dow > max) errln(UnicodeString("FAIL: Day of week ") + (int32_t)dow + " out of range"); in dowTest()
717 … if (dow != UCAL_SUNDAY) errln("FAIL: Day of week should be SUNDAY[%d] not %d", UCAL_SUNDAY, dow); in dowTest()
1560 int32_t dow = cal.get(UCAL_DOW_LOCAL, status); in yearAddTest() local
1596 if (ywy2 != (ywy+1) || woy2 != woy || dow2 != dow) { in yearAddTest()
1598 (ywy+1) + ", woy " + woy + ", dowLocal " + dow; in yearAddTest()
1818 int32_t dow = cal.get(UCAL_DAY_OF_WEEK, status); in TestWOY() local
1824 int32_t dowLocal = dow - fdw; in TestWOY()
1840 cal.set(UCAL_DAY_OF_WEEK, dow); in TestWOY()
[all …]
Dtzregts.cpp372 int32_t dow = testCal->get(UCAL_DAY_OF_WEEK, status); in checkCalendar314() local
376 dow = UCAL_SUNDAY + ((dow - UCAL_SUNDAY + 6) % 7); in checkCalendar314()
381 dow = UCAL_SUNDAY + ((dow - UCAL_SUNDAY + 1) % 7); in checkCalendar314()
388 (uint8_t)dow, in checkCalendar314()
/external/toybox/toys/pending/
Dcrond.c46 char min[60], hour[24], dom[31], mon[12], dow[7], *cmd; member
274 if (parse_and_fillarray(j->dow, 0, sizeof(j->dow), tokens[4])) in parse_line()
604 && (job->dom[lt->tm_mday] || job->dow[lt->tm_wday]) in schedule_jobs()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneRegression.java232 int dow = testCal.get(Calendar.DAY_OF_WEEK); in checkCalendar314() local
236 dow = Calendar.SUNDAY + ((dow - Calendar.SUNDAY + 6) % 7); in checkCalendar314()
241 dow = Calendar.SUNDAY + ((dow - Calendar.SUNDAY + 1) % 7); in checkCalendar314()
248 dow, in checkCalendar314()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DOlsonTimeZone.java135 … public int getOffset(int era, int year, int month,int dom, int dow, int millis, int monthLength){ in getOffset() argument
142 || dow < Calendar.SUNDAY in getOffset()
143 || dow > Calendar.SATURDAY in getOffset()
156 return finalZone.getOffset(era, year, month, dom, dow, millis); in getOffset()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DSerializableTest.java525 int dow = cal.get(Calendar.DAY_OF_WEEK); in hasSameBehavior() local
527 a_offset = tza_a.getOffset(era, year, month, day, dow, mid); in hasSameBehavior()
528 b_offset = tza_b.getOffset(era, year, month, day, dow, mid); in hasSameBehavior()

12