Class TimeZoneAttributes


  • public class TimeZoneAttributes
    extends java.lang.Object
    Represents the attributes tab of a TimeZone object.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected TimeZoneAttributes​(com.uc4.util.XMLDocument doc)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getDSTSavings()
      Returns the difference between normal time and daylight saving time (DST) in minutes.
      TimeZoneAttributes.TimeChangeRule getEndDST()
      Returns the TimeChangeRule when the daylight saving time (DST) ends.
      int getOffsetUTCHours()
      Returns the difference to UTC in hours.
      int getOffsetUTCMinutes()
      Returns the difference to UTC in minutes.
      TimeZoneAttributes.TimeChangeRule getStartDST()
      Returns the TimeChangeRule when the daylight saving time (DST) starts.
      int getYear()
      Returns the year for and after the local time values are valid.
      void setDSTSavings​(int dstSavings)
      Sets the difference between normal time and daylight saving time (DST) in minutes.
      void setOffsetUTCHours​(int hours)
      Sets the difference to UTC in hours.
      void setOffsetUTCMinutes​(int minutes)
      Sets the difference to UTC in minutes.
      void setYear​(int year)
      Sets the year for and after the local time values are valid.
      protected void store​(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TimeZoneAttributes

        protected TimeZoneAttributes​(com.uc4.util.XMLDocument doc)
    • Method Detail

      • store

        protected void store​(com.uc4.util.XMLDocument doc,
                             org.w3c.dom.Element request)
      • getYear

        public int getYear()
        Returns the year for and after the local time values are valid.
        Returns:
        year
      • setYear

        public void setYear​(int year)
        Sets the year for and after the local time values are valid.
        Parameters:
        year - year for and after the local time values are valid
      • getOffsetUTCHours

        public int getOffsetUTCHours()
        Returns the difference to UTC in hours.
        Returns:
        difference in hours
      • setOffsetUTCHours

        public void setOffsetUTCHours​(int hours)
        Sets the difference to UTC in hours. Allowed values: -13 to +13
        Parameters:
        hours - difference to UTC
      • getOffsetUTCMinutes

        public int getOffsetUTCMinutes()
        Returns the difference to UTC in minutes.
        Returns:
        difference in minutes
      • setOffsetUTCMinutes

        public void setOffsetUTCMinutes​(int minutes)
        Sets the difference to UTC in minutes. Allowed values: -59 to +59
        Parameters:
        minutes - difference in minutes
      • getDSTSavings

        public int getDSTSavings()
        Returns the difference between normal time and daylight saving time (DST) in minutes.
        Returns:
        difference in minutes
      • setDSTSavings

        public void setDSTSavings​(int dstSavings)
        Sets the difference between normal time and daylight saving time (DST) in minutes. Only positive values can be specified.
        Parameters:
        dstSavings - difference in minutes
      • getStartDST

        public TimeZoneAttributes.TimeChangeRule getStartDST()
        Returns the TimeChangeRule when the daylight saving time (DST) starts.
        Returns:
        TimeChangeRule