Lines Matching defs:DOW
679 int32_t dow = cal->get(UCAL_DAY_OF_WEEK, status);
683 if (dow < min ||
684 dow > max) errln(UnicodeString("FAIL: Day of week ") + (int32_t)dow + " out of range");
685 if (dow != UCAL_SUNDAY) errln("FAIL: Day of week should be SUNDAY[%d] not %d", UCAL_SUNDAY, dow);
809 * results in the first WOY/DOW day of the year satisfying the
812 * of 1 (for YEAR_WOY 1998) and a DOW of Tuesday, and falls in the
1460 * invariant. YEAR_WOY should keep the woy/dow invariant. I've
1514 * When adding the YEAR_WOY, the WOY and DOW should remain constant. - aliu
1528 int32_t dow = cal.get(UCAL_DOW_LOCAL, status);
1564 if (ywy2 != (ywy+1) || woy2 != woy || dow2 != dow) {
1566 (ywy+1) + ", woy " + woy + ", dowLocal " + dow;
1683 int32_t DOW, newDOW = initialDOW;
1686 DOW = newDOW;
1687 logln(UnicodeString("DOW = ") + DOW + " " + dateToString(cur->getTime(status), str));
1693 int32_t expectedDOW = 1 + (DOW + delta - 1) % 7;
1786 int32_t dow = cal.get(UCAL_DAY_OF_WEEK, status);
1792 int32_t dowLocal = dow - fdw;
1802 // Basic fields->time check y/woy/dow
1808 cal.set(UCAL_DAY_OF_WEEK, dow);
1813 if (t_y != year || t_woy != woy || t_dow != dow) {
1814 str = "Fail: y/woy/dow fields->time => ";
1818 logln("[get!=set] Y%d!=%d || woy%d!=%d || dow%d!=%d\n",
1819 t_y, year, t_woy, woy, t_dow, dow);
1821 logln("y/woy/dow fields->time OK");
1841 // Basic fields->time check y_woy/woy/dow
1845 cal.set(UCAL_DAY_OF_WEEK, dow);
1849 str = "Fail: y_woy/woy/dow fields->time => ";
1855 logln("y_woy/woy/dow OK");
1871 logln("Testing DOW_LOCAL.. dow%d\n", dow);
1872 // Make sure DOW_LOCAL disambiguates over DOW
1873 int32_t wrongDow = dow - 3;
1885 logln("%.f : DOW%d, DOW_LOCAL%d -> %.f\n",
1889 // Make sure DOW disambiguates over DOW_LOCAL
1894 cal.set(UCAL_DAY_OF_WEEK, dow);
1898 str = "Fail: DOW fields->time => ";
1986 logln("Setting: ywoy=2004, woy=1, dow=MONDAY");
1997 logln("+ setting DOW to THURSDAY");