Package com.uc4.api.objects
Class TimeZoneAttributes
- java.lang.Object
-
- com.uc4.api.objects.TimeZoneAttributes
-
public class TimeZoneAttributes extends java.lang.Object
Represents the attributes tab of aTimeZone
object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TimeZoneAttributes.TimeChangeRule
Defines the point in time for a time change.
-
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 theTimeChangeRule
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 theTimeChangeRule
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)
-
-
-
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 theTimeChangeRule
when the daylight saving time (DST) starts.- Returns:
TimeChangeRule
-
getEndDST
public TimeZoneAttributes.TimeChangeRule getEndDST()
Returns theTimeChangeRule
when the daylight saving time (DST) ends.- Returns:
TimeChangeRule
-
-