/external/icu/icu4c/source/i18n/ |
D | gregoimp.cpp | 95 int32_t& dom, int32_t& dow, int32_t& doy) { in dayToFields() argument 118 dow = (int32_t) uprv_fmod(day + 1, 7); in dayToFields() 119 dow += (dow < 0) ? (UCAL_SUNDAY + 7) : UCAL_SUNDAY; in dayToFields() 133 int32_t& dom, int32_t& dow, int32_t& doy, int32_t& mid) { in timeToFields() argument 137 dayToFields(day, year, month, dom, dow, doy); in timeToFields() 141 int32_t dow; in dayOfWeek() local 142 ClockMath::floorDivide(day + UCAL_THURSDAY, 7, dow); in dayOfWeek() 143 return (dow == 0) ? UCAL_SATURDAY : dow; in dayOfWeek()
|
D | gregoimp.h | 183 int32_t& dom, int32_t& dow, int32_t& doy); 195 int32_t& dom, int32_t& dow); 209 int32_t& dom, int32_t& dow, int32_t& doy, int32_t& mid); 276 int32_t& dom, int32_t& dow) { in dayToFields() argument 278 dayToFields(day,year,month,dom,dow,doy_unused); in dayToFields()
|
D | basictz.cpp | 163 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()
|
D | olsontz.cpp | 332 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()
|
D | tzrule.cpp | 301 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()
|
D | vtzone.cpp | 192 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() 817 int32_t month = -1, dom = 0, dow = 0; in toWallTimeRule() local 830 dow = rule->getRuleDayOfWeek(); in toWallTimeRule() 858 dow += dshift; in toWallTimeRule() 859 if (dow < UCAL_SUNDAY) { in toWallTimeRule() 860 dow = UCAL_SATURDAY; in toWallTimeRule() [all …]
|
D | calendar.cpp | 1573 int32_t dow = julianDayToDayOfWeek(julianDay); in computeGregorianAndDOWFields() local 1574 internalSet(UCAL_DAY_OF_WEEK,dow); in computeGregorianAndDOWFields() 1577 int32_t dowLocal = dow - getFirstDayOfWeek() + 1; in computeGregorianAndDOWFields() 1891 int32_t dow = internalGet(UCAL_DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local 1892 if (dow < 0) dow += 7; in roll() 1896 int32_t fdm = (dow - internalGet(UCAL_DAY_OF_MONTH) + 1) % 7; in roll() 1912 int32_t ldm = (monthLen - internalGet(UCAL_DAY_OF_MONTH) + dow) % 7; in roll() 1949 int32_t dow = internalGet(UCAL_DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local 1950 if (dow < 0) dow += 7; in roll() 1954 int32_t fdy = (dow - internalGet(UCAL_DAY_OF_YEAR) + 1) % 7; in roll() [all …]
|
D | gregocal.cpp | 976 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()
|
D | simpletz.cpp | 518 int32_t year, month, dom, dow; in getOffsetFromLocal() local 522 Grego::dayToFields(day, year, month, dom, dow); in getOffsetFromLocal() 525 (uint8_t) dow, millis, in getOffsetFromLocal() 551 Grego::dayToFields(day, year, month, dom, dow); in getOffsetFromLocal() 553 (uint8_t) dow, millis, in getOffsetFromLocal()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | TestCase.java | 73 public static String dowToString(int dow) { in dowToString() argument 74 --dow; in dowToString() 75 return (dow < 0 || dow > 6) ? in dowToString() 76 ("<DOW " + dow + ">") : DOW_NAMES[dow]; in dowToString()
|
D | CompatibilityTest.java | 100 dom = cal.get(Calendar.DATE), dow = cal.get(Calendar.DAY_OF_WEEK); in TestGregorianChangeover() local 102 i + " days: " + y + "/" + mon + "/" + dom + " dow=" + dow); in TestGregorianChangeover() 103 if (y != 1582 || mon != MON[j] || dom != DOM[j] || dow != DOW[j]) in TestGregorianChangeover() 479 int dow = cal.get(Calendar.DAY_OF_WEEK); in dowTest() local 482 if (dow < min || dow > max) errln("FAIL: Day of week " + dow + " out of range"); in dowTest() 483 if (dow != Calendar.SUNDAY) { in dowTest() 484 errln("FAIL2: Day of week should be SUNDAY; is " + dow + ": " + cal.getTime()); in dowTest()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | TestCase.java | 72 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()
|
D | CompatibilityTest.java | 99 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() 478 int dow = cal.get(Calendar.DAY_OF_WEEK); in dowTest() local 481 if (dow < min || dow > max) errln("FAIL: Day of week " + dow + " out of range"); in dowTest() 482 if (dow != Calendar.SUNDAY) { in dowTest() 483 errln("FAIL2: Day of week should be SUNDAY; is " + dow + ": " + cal.getTime()); in dowTest()
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | Calendar.java | 2540 int dow = firstDayOfWeek; in prepareGetActual() local 2542 dow = (dow + 6) % 7; // set to last DOW in prepareGetActual() 2543 if (dow < SUNDAY) { in prepareGetActual() 2544 dow += 7; in prepareGetActual() 2547 set(DAY_OF_WEEK, dow); in prepareGetActual() 2888 int dow = internalGet(DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local 2889 if (dow < 0) dow += 7; in roll() 2893 int fdm = (dow - internalGet(DAY_OF_MONTH) + 1) % 7; in roll() 2909 int ldm = (monthLen - internalGet(DAY_OF_MONTH) + dow) % 7; in roll() 2946 int dow = internalGet(DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local [all …]
|
D | AnnualTimeZoneRule.java | 137 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/ |
D | Calendar.java | 2635 int dow = firstDayOfWeek; in prepareGetActual() local 2637 dow = (dow + 6) % 7; // set to last DOW in prepareGetActual() 2638 if (dow < SUNDAY) { in prepareGetActual() 2639 dow += 7; in prepareGetActual() 2642 set(DAY_OF_WEEK, dow); in prepareGetActual() 2985 int dow = internalGet(DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local 2986 if (dow < 0) dow += 7; in roll() 2990 int fdm = (dow - internalGet(DAY_OF_MONTH) + 1) % 7; in roll() 3006 int ldm = (monthLen - internalGet(DAY_OF_MONTH) + dow) % 7; in roll() 3043 int dow = internalGet(DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local [all …]
|
D | AnnualTimeZoneRule.java | 147 int dow = Grego.dayOfWeek(ruleDay); in getStartInYear() local 148 int delta = dateTimeRule.getRuleDayOfWeek() - dow; in getStartInYear()
|
/external/icu/icu4c/source/tools/tzcode/ |
D | tz2icu.cpp | 769 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() 961 int32_t month, dom, dow, time, offset; in readFinalZonesAndRules() local 963 in >> id >> mode >> month >> dom >> dow >> time >> isstd >> isgmt >> offset; in readFinalZonesAndRules() 967 fr.part[p].set(id, mode, month, dom, dow, time, isstd, isgmt, offset); in readFinalZonesAndRules()
|
/external/icu/icu4c/source/test/intltest/ |
D | calregts.cpp | 587 int32_t dow = cal->get(UCAL_DAY_OF_WEEK, status); in dowTest() local 593 if (dow < min || dow > max) in dowTest() 594 errln("FAIL: Day of week %d out of range [%d,%d]\n", dow, min, max); in dowTest() 595 if (dow != UCAL_SUNDAY) in dowTest() 596 errln(UnicodeString("FAIL: Day of week should be SUNDAY Got ") + dow); in dowTest() 848 int32_t dow = a->get(UCAL_DAY_OF_WEEK, status); in test4095407() local 849 if (dow != UCAL_THURSDAY) in test4095407() 850 errln(UnicodeString("Fail: Want THURSDAY Got ") + dow); in test4095407() 1118 int32_t dow = DISAM_int[i+3]; in test4103271() local 1123 testCal->set(UCAL_DAY_OF_WEEK, dow); in test4103271() [all …]
|
D | tzregts.cpp | 372 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()
|
D | caltest.cpp | 720 int32_t dow = cal->get(UCAL_DAY_OF_WEEK, status); in dowTest() local 724 if (dow < min || in dowTest() 725 dow > max) errln(UnicodeString("FAIL: Day of week ") + (int32_t)dow + " out of range"); in dowTest() 726 … if (dow != UCAL_SUNDAY) errln("FAIL: Day of week should be SUNDAY[%d] not %d", UCAL_SUNDAY, dow); in dowTest() 1569 int32_t dow = cal.get(UCAL_DOW_LOCAL, status); in yearAddTest() local 1605 if (ywy2 != (ywy+1) || woy2 != woy || dow2 != dow) { in yearAddTest() 1607 (ywy+1) + ", woy " + woy + ", dowLocal " + dow; in yearAddTest() 1827 int32_t dow = cal.get(UCAL_DAY_OF_WEEK, status); in TestWOY() local 1833 int32_t dowLocal = dow - fdw; in TestWOY() 1849 cal.set(UCAL_DAY_OF_WEEK, dow); in TestWOY() [all …]
|
/external/toybox/toys/pending/ |
D | crond.c | 46 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/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/ |
D | Calendar.java | 2338 int dow = calendar.get(Calendar.DAY_OF_WEEK); in isWeekend() local 2339 if (dow == SATURDAY || dow == SUNDAY) { in isWeekend()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
D | TimeZoneRegressionTest.java | 238 int dow = testCal.get(Calendar.DAY_OF_WEEK); in checkCalendar314() local 242 dow = Calendar.SUNDAY + ((dow - Calendar.SUNDAY + 6) % 7); in checkCalendar314() 247 dow = Calendar.SUNDAY + ((dow - Calendar.SUNDAY + 1) % 7); in checkCalendar314() 254 dow, in checkCalendar314()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneRegressionTest.java | 237 int dow = testCal.get(Calendar.DAY_OF_WEEK); in checkCalendar314() local 241 dow = Calendar.SUNDAY + ((dow - Calendar.SUNDAY + 6) % 7); in checkCalendar314() 246 dow = Calendar.SUNDAY + ((dow - Calendar.SUNDAY + 1) % 7); in checkCalendar314() 253 dow, in checkCalendar314()
|