Interface TimeZoneInfo

All Superinterfaces:
Comparable<TimeZoneInfo>
All Known Implementing Classes:
TimeZoneInfoImpl

@PublicApi public interface TimeZoneInfo extends Comparable<TimeZoneInfo>
The TimeZoneInfo holds information about a timezone.
Since:
v4.4
  • Method Details

    • getTimeZoneId

      String getTimeZoneId()
      Returns:
      the id of the timezone
    • getDisplayName

      String getDisplayName()
      Returns:
      the i18n'ed display name for this timezone.
    • getGMTOffset

      String getGMTOffset()
      Returns:
      the GMT offset in the format (GMT[+|-]hh:mm)
    • getCity

      String getCity()
      Returns:
      the name of the city for this timezone.
    • getRegionKey

      String getRegionKey()
      Returns:
      the key of the region
    • toTimeZone

      TimeZone toTimeZone()
      Returns:
      the JAVA TimeZone object for this timezone.