public class TimeZoneAttributes extends Object
TimeZone object.| Modifier and Type | Class and Description |
|---|---|
static class |
TimeZoneAttributes.TimeChangeRule
Defines the point in time for a time change.
|
| 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.
|
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.TimeChangeRulepublic TimeZoneAttributes.TimeChangeRule getEndDST()
TimeChangeRule when the daylight saving time (DST) ends.TimeChangeRuleCopyright © 2021. All rights reserved.