1097 private int rawOffset; 1098 1099 /** 1100 * A boolean value which is true if and only if this zone uses daylight 1101 * saving time. If this value is false, several other fields are ignored. 1102 * @serial 1103 */ 1104 private boolean useDaylight=false; // indicate if this time zone uses DST 1105 1106 private static final int millisPerHour = 60*60*1000; 1107 private static final int millisPerDay = 24*millisPerHour; 1108 1109 /** 1110 * This field was serialized in JDK 1.1, so we have to keep it that way 1111 * to maintain serialization compatibility. However, there's no need to 1112 * recreate the array each time we create a new time zone. 1113 * @serial An array of bytes containing the values {31, 28, 31, 30, 31, 30, 1114 * 31, 31, 30, 31, 30, 31}. This is ignored as of the Java 2 platform v1.2, however, it must 1115 * be streamed out for compatibility with JDK 1.1. 1116 */ 1117 private final byte monthLength[] = staticMonthLength; 1118 private static final byte staticMonthLength[] = {31,28,31,30,31,30,31,31,30,31,30,31}; 1119 private static final byte staticLeapMonthLength[] = {31,29,31,30,31,30,31,31,30,31,30,31}; 1120 1121 /** 1122 * Variables specifying the mode of the start rule. Takes the following 1123 * values: 1124 * <dl> 1125 * <dt><code>DOM_MODE</code></dt> 1126 * <dd> 1127 * Exact day of week; e.g., March 1. 1128 * </dd> 1129 * <dt><code>DOW_IN_MONTH_MODE</code></dt> 1130 * <dd> 1131 * Day of week in month; e.g., last Sunday in March. 1132 * </dd> 1133 * <dt><code>DOW_GE_DOM_MODE</code></dt> 1134 * <dd> 1135 * Day of week after day of month; e.g., Sunday on or after March 15. 1136 * </dd> 1137 * <dt><code>DOW_LE_DOM_MODE</code></dt> 1138 * <dd> 1139 * Day of week before day of month; e.g., Sunday on or before March 15. | 1097 private int rawOffset; 1098 1099 /** 1100 * A boolean value which is true if and only if this zone uses daylight 1101 * saving time. If this value is false, several other fields are ignored. 1102 * @serial 1103 */ 1104 private boolean useDaylight=false; // indicate if this time zone uses DST 1105 1106 private static final int millisPerHour = 60*60*1000; 1107 private static final int millisPerDay = 24*millisPerHour; 1108 1109 /** 1110 * This field was serialized in JDK 1.1, so we have to keep it that way 1111 * to maintain serialization compatibility. However, there's no need to 1112 * recreate the array each time we create a new time zone. 1113 * @serial An array of bytes containing the values {31, 28, 31, 30, 31, 30, 1114 * 31, 31, 30, 31, 30, 31}. This is ignored as of the Java 2 platform v1.2, however, it must 1115 * be streamed out for compatibility with JDK 1.1. 1116 */ 1117 private final byte[] monthLength = staticMonthLength; 1118 private static final byte[] staticMonthLength = {31,28,31,30,31,30,31,31,30,31,30,31}; 1119 private static final byte[] staticLeapMonthLength = {31,29,31,30,31,30,31,31,30,31,30,31}; 1120 1121 /** 1122 * Variables specifying the mode of the start rule. Takes the following 1123 * values: 1124 * <dl> 1125 * <dt><code>DOM_MODE</code></dt> 1126 * <dd> 1127 * Exact day of week; e.g., March 1. 1128 * </dd> 1129 * <dt><code>DOW_IN_MONTH_MODE</code></dt> 1130 * <dd> 1131 * Day of week in month; e.g., last Sunday in March. 1132 * </dd> 1133 * <dt><code>DOW_GE_DOM_MODE</code></dt> 1134 * <dd> 1135 * Day of week after day of month; e.g., Sunday on or after March 15. 1136 * </dd> 1137 * <dt><code>DOW_LE_DOM_MODE</code></dt> 1138 * <dd> 1139 * Day of week before day of month; e.g., Sunday on or before March 15. |