org.geonames
Class Timezone

java.lang.Object
  extended by org.geonames.Timezone

public class Timezone
extends Object

gmtOffset and dstOffset are computed on the server with the TimeZone and included in the web service as not all geonames users are using java.

Author:
marc

Constructor Summary
Timezone()
           
 
Method Summary
 double getDstOffset()
          the dstOffset as of first of July of current year
 double getGmtOffset()
          the gmtOffset as of first of January of current year
 String getTimezoneId()
          the timezoneId (example : "Pacific/Honolulu") see also TimeZone and http://www.twinsun.com/tz/tz-link.htm
 void setDstOffset(double dstOffset)
           
 void setGmtOffset(double gmtOffset)
           
 void setTimezoneId(String timezoneId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timezone

public Timezone()
Method Detail

getDstOffset

public double getDstOffset()
the dstOffset as of first of July of current year

Returns:
the dstOffset

setDstOffset

public void setDstOffset(double dstOffset)
Parameters:
dstOffset - the dstOffset to set

getGmtOffset

public double getGmtOffset()
the gmtOffset as of first of January of current year

Returns:
the gmtOffset

setGmtOffset

public void setGmtOffset(double gmtOffset)
Parameters:
gmtOffset - the gmtOffset to set

getTimezoneId

public String getTimezoneId()
the timezoneId (example : "Pacific/Honolulu") see also TimeZone and http://www.twinsun.com/tz/tz-link.htm

Returns:
the timezoneId

setTimezoneId

public void setTimezoneId(String timezoneId)
Parameters:
timezoneId - the timezoneId to set