Lines Matching defs:dow
720 int32_t dow = cal->get(UCAL_DAY_OF_WEEK, status);
724 if (dow < min ||
725 dow > max) errln(UnicodeString("FAIL: Day of week ") + (int32_t)dow + " out of range");
726 if (dow != UCAL_SUNDAY) errln("FAIL: Day of week should be SUNDAY[%d] not %d", UCAL_SUNDAY, dow);
850 * results in the first WOY/DOW day of the year satisfying the
853 * of 1 (for YEAR_WOY 1998) and a DOW of Tuesday, and falls in the
1501 * invariant. YEAR_WOY should keep the woy/dow invariant. I've
1555 * When adding the YEAR_WOY, the WOY and DOW should remain constant. - aliu
1569 int32_t dow = cal.get(UCAL_DOW_LOCAL, status);
1605 if (ywy2 != (ywy+1) || woy2 != woy || dow2 != dow) {
1607 (ywy+1) + ", woy " + woy + ", dowLocal " + dow;
1724 int32_t DOW, newDOW = initialDOW;
1727 DOW = newDOW;
1728 logln(UnicodeString("DOW = ") + DOW + " " + dateToString(cur->getTime(status), str));
1734 int32_t expectedDOW = 1 + (DOW + delta - 1) % 7;
1827 int32_t dow = cal.get(UCAL_DAY_OF_WEEK, status);
1833 int32_t dowLocal = dow - fdw;
1843 // Basic fields->time check y/woy/dow
1849 cal.set(UCAL_DAY_OF_WEEK, dow);
1854 if (t_y != year || t_woy != woy || t_dow != dow) {
1855 str = "Fail: y/woy/dow fields->time => ";
1859 logln("[get!=set] Y%d!=%d || woy%d!=%d || dow%d!=%d\n",
1860 t_y, year, t_woy, woy, t_dow, dow);
1862 logln("y/woy/dow fields->time OK");
1882 // Basic fields->time check y_woy/woy/dow
1886 cal.set(UCAL_DAY_OF_WEEK, dow);
1890 str = "Fail: y_woy/woy/dow fields->time => ";
1896 logln("y_woy/woy/dow OK");
1912 logln("Testing DOW_LOCAL.. dow%d\n", dow);
1913 // Make sure DOW_LOCAL disambiguates over DOW
1914 int32_t wrongDow = dow - 3;
1926 logln("%.f : DOW%d, DOW_LOCAL%d -> %.f\n",
1930 // Make sure DOW disambiguates over DOW_LOCAL
1935 cal.set(UCAL_DAY_OF_WEEK, dow);
1939 str = "Fail: DOW fields->time => ";
2027 logln("Setting: ywoy=2004, woy=1, dow=MONDAY");
2038 logln("+ setting DOW to THURSDAY");