public class TimeZoneAttributes
extends java.lang.Object
TimeZone
object.Modifier and Type | Class and Description |
---|---|
static class |
TimeZoneAttributes.TimeChangeRule
Defines the point in time for a time change.
|
Modifier | Constructor and Description |
---|---|
protected |
TimeZoneAttributes(com.uc4.util.XMLDocument doc) |
Modifier and Type | Method and 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) |
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)
public int getYear()
public void setYear(int year)
year
- year for and after the local time values are validpublic int getOffsetUTCHours()
public void setOffsetUTCHours(int hours)
hours
- difference to UTCpublic int getOffsetUTCMinutes()
public void setOffsetUTCMinutes(int minutes)
minutes
- difference in minutespublic int getDSTSavings()
public void setDSTSavings(int dstSavings)
dstSavings
- difference in minutespublic TimeZoneAttributes.TimeChangeRule getStartDST()
TimeChangeRule
when the daylight saving time (DST) starts.TimeChangeRule
public TimeZoneAttributes.TimeChangeRule getEndDST()
TimeChangeRule
when the daylight saving time (DST) ends.TimeChangeRule