Class TimeZoneAttributes

java.lang.Object
com.uc4.api.objects.TimeZoneAttributes

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

    • TimeZoneAttributes

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

    • store

      protected void store(com.uc4.util.XMLDocument doc, 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
    • getEndDST

      Returns the TimeChangeRule when the daylight saving time (DST) ends.
      Returns:
      TimeChangeRule