Lines Matching defs:day

61  * <em>start-rule</em> and <em>end-rule</em>. A day when daylight saving time
63 * <em>day-of-month</em>, and <em>day-of-week</em> values. The <em>month</em>
65 * value, such as {@link Calendar#MARCH}. The <em>day-of-week</em> value is
71 * <li><b>Exact day of month</b><br>
72 * To specify an exact day of month, set the <em>month</em> and
73 * <em>day-of-month</em> to an exact value, and <em>day-of-week</em> to zero. For
75 * MARCH}, <em>day-of-month</em> to 1, and <em>day-of-week</em> to 0.</li>
77 * <li><b>Day of week on or after day of month</b><br>
78 * To specify a day of week on or after an exact day of month, set the
79 * <em>month</em> to an exact month value, <em>day-of-month</em> to the day on
80 * or after which the rule is applied, and <em>day-of-week</em> to a negative {@link
83 * <em>day-of-month</em> to 8, and <em>day-of-week</em> to <code>-</code>{@link
86 * <li><b>Day of week on or before day of month</b><br>
87 * To specify a day of the week on or before an exact day of the month, set
88 * <em>day-of-month</em> and <em>day-of-week</em> to a negative value. For
90 * <em>month</em> to {@link Calendar#MARCH MARCH}, <em>day-of-month</em> is -21
91 * and <em>day-of-week</em> is <code>-</code>{@link Calendar#WEDNESDAY WEDNESDAY}. </li>
93 * <li><b>Last day-of-week of month</b><br>
94 * To specify, the last day-of-week of the month, set <em>day-of-week</em> to a
95 * {@link Calendar#DAY_OF_WEEK DAY_OF_WEEK} value and <em>day-of-month</em> to
97 * to {@link Calendar#OCTOBER OCTOBER}, <em>day-of-week</em> to {@link
98 * Calendar#SUNDAY SUNDAY} and <em>day-of-month</em> to -1. </li>
101 * The time of the day at which daylight saving time starts or ends is
102 * specified by a millisecond value within the day. There are three kinds of
194 * @param startDay The day of the month on which the daylight saving time starts.
196 * @param startDayOfWeek The daylight saving time starting day-of-week.
199 * time (in milliseconds within the day), which is local
204 * @param endDay The day of the month on which the daylight saving time ends.
206 * @param endDayOfWeek The daylight saving time ending day-of-week.
209 * (in milliseconds within the day) which is local daylight
211 * @exception IllegalArgumentException if the month, day, dayOfWeek, or time
251 * @param startDay The day of the month on which the daylight saving time starts.
253 * @param startDayOfWeek The daylight saving time starting day-of-week.
260 * @param endDay The day of the month on which the daylight saving time ends.
262 * @param endDayOfWeek The daylight saving time ending day-of-week.
268 * @exception IllegalArgumentException if the month, day, dayOfWeek, or time
298 * @param startDay The day of the month on which the daylight saving time starts.
300 * @param startDayOfWeek The daylight saving time starting day-of-week.
308 * @param endDay The day of the month on which the daylight saving time ends.
310 * @param endDayOfWeek The daylight saving time ending day-of-week.
318 * @exception IllegalArgumentException if the month, day, dayOfWeek, time more, or
376 * @param startDay The day of the month on which the daylight saving time starts.
378 * @param startDayOfWeek The daylight saving time starting day-of-week.
404 * @param startDay The day of the month on which the daylight saving time starts.
423 * @param startDay The day of the month on which the daylight saving time starts.
424 * @param startDayOfWeek The daylight saving time starting day-of-week.
455 * @param endDay The day of the month on which the daylight saving time ends.
457 * @param endDayOfWeek The daylight saving time ending day-of-week.
460 * (in milliseconds within the day) which is local daylight
485 * @param endDay The day of the month on which the daylight saving time ends.
487 * (in milliseconds within the day) which is local daylight
505 * @param endDay The day of the month on which the daylight saving time ends.
506 * @param endDayOfWeek The daylight saving time ending day-of-week.
508 * (in milliseconds within the day) which is local daylight
596 * @param day The day-in-month of the given date.
597 * @param dayOfWeek The day-of-week of the given date.
598 * @param millis The milliseconds in day in <em>standard</em> local time.
601 * <code>month</code>, <code>day</code>, <code>dayOfWeek</code>,
604 public int getOffset(int era, int year, int month, int day, int dayOfWeek,
637 cdate.setDate(y, m, day);
650 cdate.setNormalizedDate(y, m, day);
656 || (cdate.getDayOfMonth() != day)
983 * <code>startDay</code> indicates the day of the month of
1004 * The day of the week on which daylight saving time starts. This value
1044 * <code>endDay</code> indicates the day of the month of
1065 * The day of the week on which daylight saving time ends. This value
1137 * Exact day of week; e.g., March 1.
1145 * Day of week after day of month; e.g., Sunday on or after March 15.
1149 * Day of week before day of month; e.g., Sunday on or before March 15.
1166 * Exact day of week; e.g., March 1.
1174 * Day of week after day of month; e.g., Sunday on or after March 15.
1178 * Day of week before day of month; e.g., Sunday on or before March 15.
1220 private static final int DOM_MODE = 1; // Exact day of month, "Mar 1"
1222 private static final int DOW_GE_DOM_MODE = 3; // Day of week after day of month, "Sun>=15"
1223 private static final int DOW_LE_DOM_MODE = 4; // Day of week before day of month, "Sun<=21"
1307 // startDay The day of the month, or for DOW_IN_MONTH mode, a
1310 // startDayOfWeek The day of the week. Ignored for DAY_OF_MONTH.
1342 * endDayOfMonth. Upon entry, the day of week variables may be zero or
1343 * negative, in order to indicate special modes. The day of month
1345 * set, and the day of week and day of month variables will be positive.
1364 * day -5..5 1..31 1..31 -1..-31 0
1374 * entire day. Although this is equivalent to time 0 of the following day,
1406 "Illegal start day of week " + startDayOfWeek);
1412 "Illegal start day of week in month " + startDay);
1416 "Illegal start day " + startDay);
1453 "Illegal end day of week " + endDayOfWeek);
1459 "Illegal end day of week in month " + endDay);
1463 "Illegal end day " + endDay);
1470 * day-of-week-in-month rules, we must modify other modes of rules to their
1486 // A day-of-month of 1 is equivalent to DOW_IN_MONTH_MODE
1509 // A day-of-month of 1 is equivalent to DOW_IN_MONTH_MODE
1527 * well unless it pushes into the next or previous day. If that
1528 * happens, we attempt to adjust the day rule somewhat crudely. The day
1530 * the day of week to move forward or back by a day. It's possible to
1532 * most cases this extra effort will go to waste once we adjust the day
1542 startDayOfWeek = 1 + ((startDayOfWeek+5) % 7); // Back 1 day
1546 startDayOfWeek = 1 + (startDayOfWeek % 7); // Forward 1 day
1558 endDayOfWeek = 1 + ((endDayOfWeek+5) % 7); // Back 1 day
1562 endDayOfWeek = 1 + (endDayOfWeek % 7); // Forward 1 day