961 |
public abstract boolean inDaylightTime(Date date); |
public abstract boolean inDaylightTime(Date date); |
962 |
|
|
963 |
/** |
/** |
964 |
|
* Gets the daylight savings offset. This is a positive offset in |
965 |
|
* milliseconds with respect to standard time. Typically this |
966 |
|
* is one hour, but for some time zones this may be half an our. |
967 |
|
* <p>The default implementation returns 3600000 milliseconds |
968 |
|
* (one hour) if the time zone uses daylight savings time |
969 |
|
* (as specified by {@link #useDaylightTime()}), otherwise |
970 |
|
* it returns 0. |
971 |
|
* @return the daylight savings offset in milliseconds. |
972 |
|
* @since 1.4 |
973 |
|
*/ |
974 |
|
public int getDSTSavings () |
975 |
|
{ |
976 |
|
return useDaylightTime () ? 3600000 : 0; |
977 |
|
} |
978 |
|
|
979 |
|
/** |
980 |
* Gets the TimeZone for the given ID. |
* Gets the TimeZone for the given ID. |
981 |
* @param ID the time zone identifier. |
* @param ID the time zone identifier. |
982 |
* @return The time zone for the identifier or GMT, if no such time |
* @return The time zone for the identifier or GMT, if no such time |