ICU-7014 Allow start time to be 24:00 in ICU4J SimpleTimeZone.

X-SVN-Rev: 26145
This commit is contained in:
Yoshito Umaoka 2009-06-23 20:01:39 +00:00
parent e2879a0667
commit 22ca909a67

View File

@ -989,7 +989,7 @@ public class SimpleTimeZone extends BasicTimeZone {
if (startMonth < Calendar.JANUARY || startMonth > Calendar.DECEMBER) {
throw new IllegalArgumentException();
}
if (startTime < 0 || startTime >= Grego.MILLIS_PER_DAY ||
if (startTime < 0 || startTime > Grego.MILLIS_PER_DAY ||
startTimeMode < WALL_TIME || startTimeMode > UTC_TIME) {
throw new IllegalArgumentException();
}