Lines Matching refs:week
148 // Bits used in EAS recurrences for days of the week
239 // MSFT day of week starts w/ Sunday = 0; RRule starts w/ Sunday = 1
242 setWord(bytes, offset + MSFT_SYSTEMTIME_DAY, rrule.week < 0 ? 5 : rrule.week);
256 // MSFT day of week starts w/ Sunday = 0; TimeZone starts w/ Sunday = 1
286 // MSFT day of week starts w/ Sunday = 0; TimeZone starts w/ Sunday = 1
394 int week;
410 * Create an RRULE based on month, day of week, and week #
412 * @param _dayOfWeek the day of the week (1 = SU, 7 = SA)
413 * @param _week the week in the month (1-5 or -1 for last)
419 week = _week;
425 return "FREQ=YEARLY;BYMONTH=" + month + ";BYDAY=" + week +
436 * the week in a month (e.g. 2nd Tuesday or last Friday). Indeed, these are the only kinds of
449 int week = calendar.get(Calendar.DAY_OF_WEEK_IN_MONTH);
460 // Ok, it seems to be the same day of the week
466 if (week != thisWeek) {
467 if (week < 0 || week == maxWeek) {
470 // We'll use -1 (i.e. last) week
471 week = -1;
491 // sDayTokens is 0 based (SU = 0); Calendar days of week are 1 based (SU = 1)
494 return new RRule(month + 1, dayOfWeek, week);
704 // We need both rules and they have to be DAY/WEEK type
705 // Write month, day of week, week, hour, minute
1026 // 5 = last week -> -1
1135 // -1 is the only legal case (last week) Use "5" for EAS
1150 // -1 is the only legal case (last week) Use "5" for EAS
1187 // Requires a day of week (whereas RRULE does not)
1192 // Find week number (1-4 and 5 for last)
1268 * @param dow day of the week
1270 * @param wom week of the month
1299 // week 5 and dow = weekdays -> last weekday (need BYSETPOS)