Package com.uc4.api.objects
Class TimeZoneAttributes
- java.lang.Object
-
- com.uc4.api.objects.TimeZoneAttributes
-
public class TimeZoneAttributes extends java.lang.ObjectRepresents the attributes tab of aTimeZoneobject.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimeZoneAttributes.TimeChangeRuleDefines the point in time for a time change.
-
Constructor Summary
Constructors Modifier Constructor Description protectedTimeZoneAttributes(com.uc4.util.XMLDocument doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDSTSavings()Returns the difference between normal time and daylight saving time (DST) in minutes.TimeZoneAttributes.TimeChangeRulegetEndDST()Returns theTimeChangeRulewhen the daylight saving time (DST) ends.intgetOffsetUTCHours()Returns the difference to UTC in hours.intgetOffsetUTCMinutes()Returns the difference to UTC in minutes.TimeZoneAttributes.TimeChangeRulegetStartDST()Returns theTimeChangeRulewhen the daylight saving time (DST) starts.intgetYear()Returns the year for and after the local time values are valid.voidsetDSTSavings(int dstSavings)Sets the difference between normal time and daylight saving time (DST) in minutes.voidsetOffsetUTCHours(int hours)Sets the difference to UTC in hours.voidsetOffsetUTCMinutes(int minutes)Sets the difference to UTC in minutes.voidsetYear(int year)Sets the year for and after the local time values are valid.protected voidstore(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)
-
-
-
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 theTimeChangeRulewhen the daylight saving time (DST) starts.- Returns:
TimeChangeRule
-
getEndDST
public TimeZoneAttributes.TimeChangeRule getEndDST()
Returns theTimeChangeRulewhen the daylight saving time (DST) ends.- Returns:
TimeChangeRule
-
-