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
 String getCountryCode()
           
 double getDstOffset()
          Deprecated. 
 double getGmtOffset()
          Deprecated. 
 Date getSunrise()
           
 Date getSunset()
           
 Date getTime()
           
 String getTimezoneId()
          the timezoneId (example : "Pacific/Honolulu") see also TimeZone and http://www.twinsun.com/tz/tz-link.htm
 void setCountryCode(String countryCode)
           
 void setDstOffset(double dstOffset)
           
 void setGmtOffset(double gmtOffset)
           
 void setSunrise(Date sunrise)
           
 void setSunset(Date sunset)
           
 void setTime(Date time)
           
 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

@Deprecated
public double getDstOffset()
Deprecated. 

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

@Deprecated
public double getGmtOffset()
Deprecated. 

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

getCountryCode

public String getCountryCode()
Returns:
the countryCode

setCountryCode

public void setCountryCode(String countryCode)
Parameters:
countryCode - the countryCode to set

getTime

public Date getTime()
Returns:
the time

setTime

public void setTime(Date time)
Parameters:
time - the time to set

getSunrise

public Date getSunrise()
Returns:
the sunrise

setSunrise

public void setSunrise(Date sunrise)
Parameters:
sunrise - the sunrise to set

getSunset

public Date getSunset()
Returns:
the sunset

setSunset

public void setSunset(Date sunset)
Parameters:
sunset - the sunset to set