Package com.iizix.geo
Class RegionLocation.Timezone
java.lang.Object
com.iizix.geo.RegionLocation.Timezone
- Enclosing class:
- RegionLocation
Class containing timezone information.
- Method SummaryModifier and TypeMethodDescription- booleanReturns if another object equals this one.- getCode()Returns the timezone code, null for none.Returns the GMT offset of the given time zone in seconds, e.g.- getID()Returns the timezone ID, null for none.Returns the computed TimeZone from the information available.- int- hashCode()Returns the hash code of this instance.- toString()Returns a String representation of this instance as "[id,code,gmtOffset,TimeZone]".
- Method Details- getIDReturns the timezone ID, null for none.- Returns:
- The timezone ID.
 
- getTimeZoneReturns the computed TimeZone from the information available. Please note that it may be incorrect if the timezone ID cannot be matched properly.- Returns:
- The TimeZone, never null.
 
- getCodeReturns the timezone code, null for none.- Returns:
- The timezone code.
 
- getGMTOffsetReturns the GMT offset of the given time zone in seconds, e.g. -25200 for PST's -7h GMT offset, null for none.- Returns:
- The GMT offset in seconds.
 
- hashCodepublic int hashCode()Returns the hash code of this instance.
- equalsReturns if another object equals this one.
- toStringReturns a String representation of this instance as "[id,code,gmtOffset,TimeZone]".