Package com.uc4.api.objects
Class TimeZoneAttributes
java.lang.Object
com.uc4.api.objects.TimeZoneAttributes
Represents the attributes tab of a
TimeZone
object.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Defines the point in time for a time change. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the difference between normal time and daylight saving time (DST) in minutes.Returns theTimeChangeRule
when the daylight saving time (DST) ends.int
Returns the difference to UTC in hours.int
Returns the difference to UTC in minutes.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
-
Constructor Details
-
TimeZoneAttributes
protected TimeZoneAttributes(com.uc4.util.XMLDocument doc)
-
-
Method Details
-
store
-
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
Returns theTimeChangeRule
when the daylight saving time (DST) starts.- Returns:
TimeChangeRule
-
getEndDST
Returns theTimeChangeRule
when the daylight saving time (DST) ends.- Returns:
TimeChangeRule
-