Package org.geonames

Class 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 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