com.atlassian.jira.timezone
Class TimeZoneInfoImpl
java.lang.Object
com.atlassian.jira.timezone.TimeZoneInfoImpl
- All Implemented Interfaces:
- TimeZoneInfo, Comparable<TimeZoneInfo>
public class TimeZoneInfoImpl
- extends Object
- implements TimeZoneInfo
- Since:
- v4.4
TimeZoneInfoImpl
public TimeZoneInfoImpl(String timeZoneId,
String displayName,
TimeZone timeZone,
I18nHelper i18nHelper,
String regionKey)
getTimeZoneId
public String getTimeZoneId()
- Specified by:
getTimeZoneId
in interface TimeZoneInfo
- Returns:
- the id of the timezone
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interface TimeZoneInfo
- Returns:
- the i18n'ed display name for this timezone.
getGMTOffset
public String getGMTOffset()
- Specified by:
getGMTOffset
in interface TimeZoneInfo
- Returns:
- the GMT offset in the format (GMT[+|-]hh:mm)
getCity
public String getCity()
- Specified by:
getCity
in interface TimeZoneInfo
- Returns:
- the name of the city for this timezone.
getRegionKey
public String getRegionKey()
- Specified by:
getRegionKey
in interface TimeZoneInfo
- Returns:
- the key of the region
toTimeZone
public TimeZone toTimeZone()
- Specified by:
toTimeZone
in interface TimeZoneInfo
- Returns:
- the JAVA TimeZone object for this timezone.
compareTo
public int compareTo(TimeZoneInfo timeZoneInfo)
- Specified by:
compareTo
in interface Comparable<TimeZoneInfo>
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2002-2013 Atlassian. All Rights Reserved.