public class TimeChange
extends java.lang.Object
| Constructor and Description |
|---|
TimeChange()
Initializes a new instance of the TimeChange class.
|
TimeChange(Duration offset)
Initializes a new instance of the TimeChange class.
|
TimeChange(int offsetHours)
Initializes a new instance of the TimeChange class.
|
TimeChange(int offsetHours,
int offsetMinutes)
Initializes a new instance of the TimeChange class.
|
| Modifier and Type | Method and Description |
|---|---|
Duration |
getOffset()
Gets the offset from the BaseOffset.
|
TimeChangePattern |
getPattern()
Gets a relative yearly recurrence pattern for a time zone transition date pattern.
|
Time |
getTime()
Gets the time when the time changes between standard time and daylight saving time.
|
java.lang.String |
getTimeZone()
Gets a text description of a time zone.
|
void |
setOffset(Duration offset)
Sets the offset from the BaseOffset.
|
void |
setPattern(TimeChangePattern pattern)
Sets a relative yearly recurrence pattern for a time zone transition date pattern.
|
void |
setTime(Time time)
Sets the time when the time changes between standard time and daylight saving time.
|
void |
setTimeZone(java.lang.String timeZone)
Sets a text description of a time zone.
|
public TimeChange()
public TimeChange(Duration offset)
offset - the offsetpublic TimeChange(int offsetHours)
offsetHours - the offset hourspublic TimeChange(int offsetHours,
int offsetMinutes)
offsetHours - the offset hoursoffsetMinutes - the offset minutespublic java.lang.String getTimeZone()
public void setTimeZone(java.lang.String timeZone)
timeZone - the new time zonepublic Duration getOffset()
public void setOffset(Duration offset)
offset - the new offsetpublic Time getTime()
public void setTime(Time time)
time - the new timepublic TimeChangePattern getPattern()
public void setPattern(TimeChangePattern pattern)
pattern - the new pattern