1 |
/* java.util.SimpleTimeZone |
/* java.util.SimpleTimeZone |
2 |
Copyright (C) 1998, 1999, 2000, 2003, 2004 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
228 |
* startMode, endMode and dstSavings. And there is a optional section |
* startMode, endMode and dstSavings. And there is a optional section |
229 |
* as described in writeObject. |
* as described in writeObject. |
230 |
* </dd> |
* </dd> |
231 |
|
* </dl> |
232 |
* |
* |
233 |
* XXX - JDK 1.2 Beta 4 docu states 1.1.4, but my 1.1.5 has the old |
* XXX - JDK 1.2 Beta 4 docu states 1.1.4, but my 1.1.5 has the old |
234 |
* version. |
* version. |
425 |
*/ |
*/ |
426 |
private int checkRule(int month, int day, int dayOfWeek) |
private int checkRule(int month, int day, int dayOfWeek) |
427 |
{ |
{ |
428 |
|
if (month < 0 || month > 11) |
429 |
|
throw new IllegalArgumentException("month out of range"); |
430 |
|
|
431 |
int daysInMonth = getDaysInMonth(month, 1); |
int daysInMonth = getDaysInMonth(month, 1); |
432 |
if (dayOfWeek == 0) |
if (dayOfWeek == 0) |
433 |
{ |
{ |