public interface TimeZone
Modifier and Type | Method and Description |
---|---|
int |
getDaylightAdjustment(java.util.Date date)
Returns the daylight savings time adjustment, in minutes, for the given
date.
|
java.lang.String |
getGMTString(java.util.Date date)
Returns the GMT representation of this time zone object.
|
java.lang.String |
getID()
Returns time zone id for this time zone.
|
java.lang.String |
getISOTimeZoneString(java.util.Date date)
To get ISO-style (+00:00) representation of the time zone for given date.
|
java.lang.String |
getLongName(java.util.Date date)
Returns the long version of the time zone name for the given date; the
result of this method will be different if daylight savings time is in
effect.
|
int |
getOffset(java.util.Date date)
Returns the RFC representation of the time zone name for the given date.
|
java.lang.String |
getRFCTimeZoneString(java.util.Date date)
To get RFC representation of certain time zone name for given date.
|
java.lang.String |
getShortName(java.util.Date date)
Returns the short time zone name for a given date.
|
int |
getStandardOffset()
Returns the standard time zone offset, in minutes.
|
boolean |
isDaylightTime(java.util.Date date)
Check whether the given date and time falls within a daylight savings time
period.
|
int getDaylightAdjustment(java.util.Date date)
date
- the date to checkjava.lang.String getGMTString(java.util.Date date)
date
- The date from which the time information should be extractedjava.lang.String getID()
java.lang.String getISOTimeZoneString(java.util.Date date)
date
- The date for which time to retrieve RFC time zone stringjava.lang.String getLongName(java.util.Date date)
date
- The date for which the long time zone name is returnedint getOffset(java.util.Date date)
date
- The date for which time to retrieve time zone offsetjava.lang.String getRFCTimeZoneString(java.util.Date date)
date
- The date for which time to retrieve RFC time zone stringjava.lang.String getShortName(java.util.Date date)
date
- The date for which time to retrieve short time zoneint getStandardOffset()
boolean isDaylightTime(java.util.Date date)
date
- and time to check