public interface TimeZone
Modifier and Type | Method and Description |
---|---|
int |
getDaylightAdjustment(Date date)
Returns the daylight savings time adjustment, in minutes, for the given
date.
|
String |
getGMTString(Date date)
Returns the GMT representation of this time zone object.
|
String |
getID()
Returns time zone id for this time zone.
|
String |
getISOTimeZoneString(Date date)
To get ISO-style (+00:00) representation of the time zone for given date.
|
String |
getLongName(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(Date date)
Returns the RFC representation of the time zone name for the given date.
|
String |
getRFCTimeZoneString(Date date)
To get RFC representation of certain time zone name for given date.
|
String |
getShortName(Date date)
Returns the short time zone name for a given date.
|
int |
getStandardOffset()
Returns the standard time zone offset, in minutes.
|
boolean |
isDaylightTime(Date date)
Check whether the given date and time falls within a daylight savings time
period.
|
int getDaylightAdjustment(Date date)
date
- the date to checkString getGMTString(Date date)
date
- The date from which the time information should be extractedString getID()
String getISOTimeZoneString(Date date)
date
- The date for which time to retrieve RFC time zone stringString getLongName(Date date)
date
- The date for which the long time zone name is returnedint getOffset(Date date)
date
- The date for which time to retrieve time zone offsetString getRFCTimeZoneString(Date date)
date
- The date for which time to retrieve RFC time zone stringString getShortName(Date date)
date
- The date for which time to retrieve short time zoneint getStandardOffset()
boolean isDaylightTime(Date date)
date
- and time to checkCopyright © 2018. All rights reserved.