/external/icu/icu4c/source/i18n/ |
D | gregoimp.cpp | 100 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()
|
D | gregoimp.h | 194 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()
|
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 | 329 int32_t dom, uint8_t dow, in getOffset() argument 337 return getOffset(era, year, month, dom, dow, millis, in getOffset() 347 int32_t dom, uint8_t dow, in getOffset() argument 359 || dow < UCAL_SUNDAY in getOffset() 360 || dow > UCAL_SATURDAY in getOffset() 374 return finalZone->getOffset(era, year, month, dom, dow, in getOffset() 437 int32_t year, month, dom, dow; in printTime() local 441 Grego::dayToFields(days, year, month, dom, dow); in printTime() 569 int32_t year, month, dom, dow, doy, mid; in useDaylightTime() local 570 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 | 1600 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 …]
|
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 | erarules.cpp | 308 int year, month0, dom, dow, doy, mid; in initCurrentEra() local 309 Grego::timeToFields(localMillis, year, month0, dom, dow, doy, mid); in initCurrentEra()
|
D | simpletz.cpp | 519 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/ |
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 | 103 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/ |
D | TestCase.java | 75 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()
|
D | CompatibilityTest.java | 106 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/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | Calendar.java | 2611 int dow = firstDayOfWeek; in prepareGetActual() local 2613 dow = (dow + 6) % 7; // set to last DOW in prepareGetActual() 2614 if (dow < SUNDAY) { in prepareGetActual() 2615 dow += 7; in prepareGetActual() 2618 set(DAY_OF_WEEK, dow); in prepareGetActual() 2961 int dow = internalGet(DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local 2962 if (dow < 0) dow += 7; in roll() 2966 int fdm = (dow - internalGet(DAY_OF_MONTH) + 1) % 7; in roll() 2982 int ldm = (monthLen - internalGet(DAY_OF_MONTH) + dow) % 7; in roll() 3019 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/android_icu4j/src/main/java/android/icu/util/ |
D | Calendar.java | 2516 int dow = firstDayOfWeek; in prepareGetActual() local 2518 dow = (dow + 6) % 7; // set to last DOW in prepareGetActual() 2519 if (dow < SUNDAY) { in prepareGetActual() 2520 dow += 7; in prepareGetActual() 2523 set(DAY_OF_WEEK, dow); in prepareGetActual() 2864 int dow = internalGet(DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local 2865 if (dow < 0) dow += 7; in roll() 2869 int fdm = (dow - internalGet(DAY_OF_MONTH) + 1) % 7; in roll() 2885 int ldm = (monthLen - internalGet(DAY_OF_MONTH) + dow) % 7; in roll() 2922 int dow = internalGet(DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local [all …]
|
D | AnnualTimeZoneRule.java | 141 int dow = Grego.dayOfWeek(ruleDay); in getStartInYear() local 142 int delta = dateTimeRule.getRuleDayOfWeek() - dow; in getStartInYear()
|
/external/libtextclassifier/native/annotator/grammar/dates/utils/ |
D | date-utils.cc | 87 void IncrementDayOfWeek(DayOfWeek* dow) { in IncrementDayOfWeek() argument 93 std::find(std::begin(dow_ring), std::end(dow_ring), *dow); in IncrementDayOfWeek() 95 *dow = *std::next(cur_dow); in IncrementDayOfWeek()
|
/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() 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/ |
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/icu4c/source/test/intltest/ |
D | calregts.cpp | 594 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 …]
|
D | caltest.cpp | 730 int32_t dow = cal->get(UCAL_DAY_OF_WEEK, status); in dowTest() local 734 if (dow < min || in dowTest() 735 dow > max) errln(UnicodeString("FAIL: Day of week ") + (int32_t)dow + " out of range"); in dowTest() 736 … if (dow != UCAL_SUNDAY) errln("FAIL: Day of week should be SUNDAY[%d] not %d", UCAL_SUNDAY, dow); in dowTest() 1583 int32_t dow = cal.get(UCAL_DOW_LOCAL, status); in yearAddTest() local 1619 if (ywy2 != (ywy+1) || woy2 != woy || dow2 != dow) { in yearAddTest() 1621 (ywy+1) + ", woy " + woy + ", dowLocal " + dow; in yearAddTest() 1842 int32_t dow = cal.get(UCAL_DAY_OF_WEEK, status); in TestWOY() local 1848 int32_t dowLocal = dow - fdw; in TestWOY() 1864 cal.set(UCAL_DAY_OF_WEEK, dow); in TestWOY() [all …]
|
D | tzregts.cpp | 374 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()
|