Home | History | Annotate | Download | only in i18n

Lines Matching refs:woy

1648     int32_t woy = (dayOfYear - 1 + relDowJan1) / 7; // 0..53
1650 ++woy;
1655 if (woy == 0) {
1662 woy = weekNumber(prevDoy, dayOfWeek);
1679 woy = 1;
1684 fFields[UCAL_WEEK_OF_YEAR] = woy;
3322 if(bestField == UCAL_WEEK_OF_YEAR) { // ------------------------------------- WOY -------------
3328 int32_t woy = internalGet(bestField);
3337 if(woy==1) { // FIRST WEEK ---------------------------------
3339 fprintf(stderr, "%s:%d - woy=%d, yp=%d, nj(%d)=%d, nf=%d", __FILE__, __LINE__,
3346 // nextFirst is now the localized DOW of Jan 1 of y-woy+1
3365 } else if(woy>=getLeastMaximum(bestField)) {
3373 testDate += 7 * (woy - 1);
3448 int32_t Calendar::handleGetExtendedYearFromWeekFields(int32_t yearWoy, int32_t woy)
3488 UBool jan1InPrevYear = FALSE; // January 1st in the year of WOY is the 1st week? (i.e. first week is < minimal )
3489 //UBool nextJan1InPrevYear = FALSE; // January 1st of Year of WOY + 1 is in the first week?
3501 if(woy == 1) {
3507 // First WOY is split between two years
3514 } else if(woy >= getLeastMaximum(bestField)) {
3519 (woy-1)*7 + // add the weeks of the year
3522 jd -= 7; // woy already includes Jan 1's week.
3539 (woy >= getLeastMaximum(UCAL_WEEK_OF_YEAR))) {
3540 return yearWoy+1; // month 0, late woy = in the next year
3541 } else if(woy==1) {
3686 fprintf(stderr, "prepareGetActualHelper(WOM/WOY) - dow=%d\n", dow);