38 |
|
|
39 |
package java.util; |
package java.util; |
40 |
|
|
|
import java.text.DateFormatSymbols; |
|
|
|
|
41 |
/** |
/** |
42 |
* This class represents a simple time zone offset and handles |
* This class represents a simple time zone offset and handles |
43 |
* daylight savings. It can only handle one daylight savings rule, so |
* daylight savings. It can only handle one daylight savings rule, so |
86 |
private static final int DOW_IN_MONTH_MODE = 2; |
private static final int DOW_IN_MONTH_MODE = 2; |
87 |
private static final int DOW_GE_DOM_MODE = 3; |
private static final int DOW_GE_DOM_MODE = 3; |
88 |
private static final int DOW_LE_DOM_MODE = 4; |
private static final int DOW_LE_DOM_MODE = 4; |
89 |
|
|
90 |
/** |
/** |
91 |
* The mode of the start rule. This takes one of the following values: |
* The mode of the start rule. This takes one of the following values: |
92 |
* <dl> |
* <dl> |
487 |
/** |
/** |
488 |
* Returns the time zone offset to GMT in milliseconds, ignoring |
* Returns the time zone offset to GMT in milliseconds, ignoring |
489 |
* day light savings. |
* day light savings. |
490 |
* @return the time zone offset. */ |
* @return the time zone offset. |
491 |
|
*/ |
492 |
public int getRawOffset() |
public int getRawOffset() |
493 |
{ |
{ |
494 |
return rawOffset; |
return rawOffset; |
507 |
* Gets the daylight savings offset. This is a positive offset in |
* Gets the daylight savings offset. This is a positive offset in |
508 |
* milliseconds with respect to standard time. Typically this |
* milliseconds with respect to standard time. Typically this |
509 |
* is one hour, but for some time zones this may be half an our. |
* is one hour, but for some time zones this may be half an our. |
510 |
|
* |
511 |
* @return the daylight savings offset in milliseconds. |
* @return the daylight savings offset in milliseconds. |
512 |
* @since JDK1.1.4? |
* |
513 |
|
* @since 1.2 |
514 |
*/ |
*/ |
515 |
public int getDSTSavings() |
public int getDSTSavings() |
516 |
{ |
{ |