Home
last modified time | relevance | path

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

123

/external/icu/icu4c/source/i18n/
Dgregoimp.cpp100 int32_t& dom, int32_t& dow, int32_t& doy) { in dayToFields() argument
123 dow = (int32_t) uprv_fmod(day + 1, 7); in dayToFields()
124 dow += (dow < 0) ? (UCAL_SUNDAY + 7) : UCAL_SUNDAY; in dayToFields()
138 int32_t& dom, int32_t& dow, int32_t& doy, int32_t& mid) { in timeToFields() argument
142 dayToFields(day, year, month, dom, dow, doy); in timeToFields()
146 int32_t dow; in dayOfWeek() local
147 ClockMath::floorDivide(day + UCAL_THURSDAY, 7, dow); in dayOfWeek()
148 return (dow == 0) ? UCAL_SATURDAY : dow; in dayOfWeek()
Dgregoimp.h194 int32_t& dom, int32_t& dow, int32_t& doy);
206 int32_t& dom, int32_t& dow);
220 int32_t& dom, int32_t& dow, int32_t& doy, int32_t& mid);
287 int32_t& dom, int32_t& dow) { in dayToFields() argument
289 dayToFields(day,year,month,dom,dow,doy_unused); in dayToFields()
Dbasictz.cpp163 int32_t year, month, dom, dow, doy, mid; in getSimpleRulesNear() local
168 year, month, dom, dow, doy, mid); in getSimpleRulesNear()
171 … DateTimeRule *dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); in getSimpleRulesNear()
195 year, month, dom, dow, doy, mid); in getSimpleRulesNear()
198 … dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); in getSimpleRulesNear()
226 year, month, dom, dow, doy, mid); in getSimpleRulesNear()
228 … dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); in getSimpleRulesNear()
481 int32_t year, month, dom, dow, doy, mid; in getTimeZoneRulesAfter() local
482 Grego::timeToFields(tzt.getTime(), year, month, dom, dow, doy, mid); in getTimeZoneRulesAfter()
Dolsontz.cpp332 int32_t dom, uint8_t dow, in getOffset() argument
340 return getOffset(era, year, month, dom, dow, millis, in getOffset()
350 int32_t dom, uint8_t dow, in getOffset() argument
362 || dow < UCAL_SUNDAY in getOffset()
363 || dow > UCAL_SATURDAY in getOffset()
377 return finalZone->getOffset(era, year, month, dom, dow, in getOffset()
440 int32_t year, month, dom, dow; in printTime() local
444 Grego::dayToFields(days, year, month, dom, dow); in printTime()
572 int32_t year, month, dom, dow, doy, mid; in useDaylightTime() local
573 Grego::timeToFields(current, year, month, dom, dow, doy, mid); in useDaylightTime()
Dtzrule.cpp301 int32_t dow = Grego::dayOfWeek(ruleDay); in getStartInYear() local
302 int32_t delta = fDateTimeRule->getRuleDayOfWeek() - dow; in getStartInYear()
358 int32_t year, month, dom, dow, doy, mid; in getNextStart() local
359 Grego::timeToFields(base, year, month, dom, dow, doy, mid); in getNextStart()
382 int32_t year, month, dom, dow, doy, mid; in getPreviousStart() local
383 Grego::timeToFields(base, year, month, dom, dow, doy, mid); in getPreviousStart()
Dvtzone.cpp192 int32_t year, month, dom, dow, doy, mid; in getDateTimeString() local
193 Grego::timeToFields(time, year, month, dom, dow, doy, mid); in getDateTimeString()
382 static void parseRRULE(const UnicodeString& rrule, int32_t& month, int32_t& dow, int32_t& wim, in parseRRULE() argument
390 dow = 0; in parseRRULE()
477 dow = wday + 1; in parseRRULE()
821 int32_t month = -1, dom = 0, dow = 0; in toWallTimeRule() local
834 dow = rule->getRuleDayOfWeek(); in toWallTimeRule()
862 dow += dshift; in toWallTimeRule()
863 if (dow < UCAL_SUNDAY) { in toWallTimeRule()
864 dow = UCAL_SATURDAY; in toWallTimeRule()
[all …]
Dcalendar.cpp1600 int32_t dow = julianDayToDayOfWeek(julianDay); in computeGregorianAndDOWFields() local
1601 internalSet(UCAL_DAY_OF_WEEK,dow); in computeGregorianAndDOWFields()
1604 int32_t dowLocal = dow - getFirstDayOfWeek() + 1; in computeGregorianAndDOWFields()
1918 int32_t dow = internalGet(UCAL_DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
1919 if (dow < 0) dow += 7; in roll()
1923 int32_t fdm = (dow - internalGet(UCAL_DAY_OF_MONTH) + 1) % 7; in roll()
1939 int32_t ldm = (monthLen - internalGet(UCAL_DAY_OF_MONTH) + dow) % 7; in roll()
1976 int32_t dow = internalGet(UCAL_DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
1977 if (dow < 0) dow += 7; in roll()
1981 int32_t fdy = (dow - internalGet(UCAL_DAY_OF_YEAR) + 1) % 7; in roll()
[all …]
Dgregocal.cpp976 int32_t dow = internalGet(UCAL_DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
977 if (dow < 0) in roll()
978 dow += 7; in roll()
985 int32_t fdm = (dow - dom + 1) % 7; in roll()
1002 int32_t ldm = (monthLen - dom + dow) % 7; in roll()
Derarules.cpp308 int year, month0, dom, dow, doy, mid; in initCurrentEra() local
309 Grego::timeToFields(localMillis, year, month0, dom, dow, doy, mid); in initCurrentEra()
Dsimpletz.cpp519 int32_t year, month, dom, dow; in getOffsetFromLocal() local
523 Grego::dayToFields(day, year, month, dom, dow); in getOffsetFromLocal()
526 (uint8_t) dow, millis, in getOffsetFromLocal()
552 Grego::dayToFields(day, year, month, dom, dow); in getOffsetFromLocal()
554 (uint8_t) dow, millis, in getOffsetFromLocal()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DTestCase.java72 public static String dowToString(int dow) { in dowToString() argument
73 --dow; in dowToString()
74 return (dow < 0 || dow > 6) ? in dowToString()
75 ("<DOW " + dow + ">") : DOW_NAMES[dow]; in dowToString()
DCompatibilityTest.java103 dom = cal.get(Calendar.DATE), dow = cal.get(Calendar.DAY_OF_WEEK); in TestGregorianChangeover() local
105 i + " days: " + y + "/" + mon + "/" + dom + " dow=" + dow); in TestGregorianChangeover()
106 if (y != 1582 || mon != MON[j] || dom != DOM[j] || dow != DOW[j]) in TestGregorianChangeover()
482 int dow = cal.get(Calendar.DAY_OF_WEEK); in dowTest() local
485 if (dow < min || dow > max) errln("FAIL: Day of week " + dow + " out of range"); in dowTest()
486 if (dow != Calendar.SUNDAY) { in dowTest()
487 errln("FAIL2: Day of week should be SUNDAY; is " + dow + ": " + cal.getTime()); in dowTest()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DTestCase.java75 public static String dowToString(int dow) { in dowToString() argument
76 --dow; in dowToString()
77 return (dow < 0 || dow > 6) ? in dowToString()
78 ("<DOW " + dow + ">") : DOW_NAMES[dow]; in dowToString()
DCompatibilityTest.java106 dom = cal.get(Calendar.DATE), dow = cal.get(Calendar.DAY_OF_WEEK); in TestGregorianChangeover() local
108 i + " days: " + y + "/" + mon + "/" + dom + " dow=" + dow); in TestGregorianChangeover()
109 if (y != 1582 || mon != MON[j] || dom != DOM[j] || dow != DOW[j]) in TestGregorianChangeover()
485 int dow = cal.get(Calendar.DAY_OF_WEEK); in dowTest() local
488 if (dow < min || dow > max) errln("FAIL: Day of week " + dow + " out of range"); in dowTest()
489 if (dow != Calendar.SUNDAY) { in dowTest()
490 errln("FAIL2: Day of week should be SUNDAY; is " + dow + ": " + cal.getTime()); in dowTest()
/external/icu/libicu/cts_headers/
Dgregoimp.h194 int32_t& dom, int32_t& dow, int32_t& doy);
206 int32_t& dom, int32_t& dow);
220 int32_t& dom, int32_t& dow, int32_t& doy, int32_t& mid);
287 int32_t& dom, int32_t& dow) { in dayToFields() argument
289 dayToFields(day,year,month,dom,dow,doy_unused); in dayToFields()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DCalendar.java2517 int dow = firstDayOfWeek; in prepareGetActual() local
2519 dow = (dow + 6) % 7; // set to last DOW in prepareGetActual()
2520 if (dow < SUNDAY) { in prepareGetActual()
2521 dow += 7; in prepareGetActual()
2524 set(DAY_OF_WEEK, dow); in prepareGetActual()
2865 int dow = internalGet(DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
2866 if (dow < 0) dow += 7; in roll()
2870 int fdm = (dow - internalGet(DAY_OF_MONTH) + 1) % 7; in roll()
2886 int ldm = (monthLen - internalGet(DAY_OF_MONTH) + dow) % 7; in roll()
2923 int dow = internalGet(DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
[all …]
DAnnualTimeZoneRule.java137 int dow = Grego.dayOfWeek(ruleDay); in getStartInYear() local
138 int delta = dateTimeRule.getRuleDayOfWeek() - dow; in getStartInYear()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DCalendar.java2612 int dow = firstDayOfWeek; in prepareGetActual() local
2614 dow = (dow + 6) % 7; // set to last DOW in prepareGetActual()
2615 if (dow < SUNDAY) { in prepareGetActual()
2616 dow += 7; in prepareGetActual()
2619 set(DAY_OF_WEEK, dow); in prepareGetActual()
2962 int dow = internalGet(DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
2963 if (dow < 0) dow += 7; in roll()
2967 int fdm = (dow - internalGet(DAY_OF_MONTH) + 1) % 7; in roll()
2983 int ldm = (monthLen - internalGet(DAY_OF_MONTH) + dow) % 7; in roll()
3020 int dow = internalGet(DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
[all …]
DAnnualTimeZoneRule.java147 int dow = Grego.dayOfWeek(ruleDay); in getStartInYear() local
148 int delta = dateTimeRule.getRuleDayOfWeek() - dow; in getStartInYear()
DVTimeZone.java1742 int month = -1, dom = 0, dow = 0, dtype = -1; in toWallTimeRule() local
1754 dow = rule.getRuleDayOfWeek(); in toWallTimeRule()
1783 dow += dshift; in toWallTimeRule()
1784 if (dow < Calendar.SUNDAY) { in toWallTimeRule()
1785 dow = Calendar.SATURDAY; in toWallTimeRule()
1786 } else if (dow > Calendar.SATURDAY) { in toWallTimeRule()
1787 dow = Calendar.SUNDAY; in toWallTimeRule()
1796 modifiedRule = new DateTimeRule(month, dom, dow, in toWallTimeRule()
/external/icu/icu4c/source/tools/tzcode/
Dtz2icu.cpp769 int32_t dow; member
817 dow = _dow; in set()
830 if (mode != DOM && (dow < 0 || dow >= 7)) { in set()
831 os << "Invalid input day of week " << dow; in set()
843 << month << dom << dow << time in set()
887 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()
/external/toybox/toys/pending/
Dcrond.c46 char min[60], hour[24], dom[31], mon[12], dow[7], *cmd; member
275 if (parse_and_fillarray(j->dow, 0, sizeof(j->dow), tokens[4])) in parse_line()
605 && (job->dom[lt->tm_mday] || job->dow[lt->tm_wday]) in schedule_jobs()
/external/icu/icu4c/source/test/intltest/
Dcalregts.cpp594 int32_t dow = cal->get(UCAL_DAY_OF_WEEK, status); in dowTest() local
600 if (dow < min || dow > max) in dowTest()
601 errln("FAIL: Day of week %d out of range [%d,%d]\n", dow, min, max); in dowTest()
602 if (dow != UCAL_SUNDAY) in dowTest()
603 errln(UnicodeString("FAIL: Day of week should be SUNDAY Got ") + dow); in dowTest()
855 int32_t dow = a->get(UCAL_DAY_OF_WEEK, status); in test4095407() local
856 if (dow != UCAL_THURSDAY) in test4095407()
857 errln(UnicodeString("Fail: Want THURSDAY Got ") + dow); in test4095407()
1125 int32_t dow = DISAM_int[i+3]; in test4103271() local
1130 testCal->set(UCAL_DAY_OF_WEEK, dow); in test4103271()
[all …]
Dtzregts.cpp374 int32_t dow = testCal->get(UCAL_DAY_OF_WEEK, status); in checkCalendar314() local
378 dow = UCAL_SUNDAY + ((dow - UCAL_SUNDAY + 6) % 7); in checkCalendar314()
383 dow = UCAL_SUNDAY + ((dow - UCAL_SUNDAY + 1) % 7); in checkCalendar314()
390 (uint8_t)dow, in checkCalendar314()
Dcaltest.cpp737 int32_t dow = cal->get(UCAL_DAY_OF_WEEK, status); in dowTest() local
741 if (dow < min || in dowTest()
742 dow > max) errln(UnicodeString("FAIL: Day of week ") + (int32_t)dow + " out of range"); in dowTest()
743 … if (dow != UCAL_SUNDAY) errln("FAIL: Day of week should be SUNDAY[%d] not %d", UCAL_SUNDAY, dow); in dowTest()
1590 int32_t dow = cal.get(UCAL_DOW_LOCAL, status); in yearAddTest() local
1626 if (ywy2 != (ywy+1) || woy2 != woy || dow2 != dow) { in yearAddTest()
1628 (ywy+1) + ", woy " + woy + ", dowLocal " + dow; in yearAddTest()
1849 int32_t dow = cal.get(UCAL_DAY_OF_WEEK, status); in TestWOY() local
1855 int32_t dowLocal = dow - fdw; in TestWOY()
1871 cal.set(UCAL_DAY_OF_WEEK, dow); in TestWOY()
[all …]

123