public class SerializableTimeZone
extends java.lang.Object
| Constructor and Description |
|---|
SerializableTimeZone()
Initializes a new instance of the SerializableTimeZone class.
|
SerializableTimeZone(int offset,
SerializableTimeZoneTime standardTime,
SerializableTimeZoneTime daylightTime)
Initializes a new instance of the SerializableTimeZone class.
|
SerializableTimeZone(StandardTimeZone standardTimeZone)
Initializes a new instance of the SerializableTimeZone class.
|
| Modifier and Type | Method and Description |
|---|---|
SerializableTimeZoneTime |
getDaylightTime()
Gets a value that represents an offset from the time relative to Coordinated Universal Time (UTC) that is represented by the Bias property.
|
int |
getOffset()
Gets a value that represents the general offset from Coordinated Universal Time (UTC).
|
SerializableTimeZoneTime |
getStandardTime()
Gets a value that represents an offset from the time relative to Coordinated Universal Time (UTC) that is represented by the Bias property.
|
void |
setDaylightTime(SerializableTimeZoneTime daylightTime)
Sets a value that represents an offset from the time relative to Coordinated Universal Time (UTC) that is represented by the Bias property.
|
void |
setOffset(int offset)
Sets a value that represents the general offset from Coordinated Universal Time (UTC).
|
void |
setStandardTime(SerializableTimeZoneTime standardTime)
Sets a value that represents an offset from the time relative to Coordinated Universal Time (UTC) that is represented by the Bias property.
|
public SerializableTimeZone()
public SerializableTimeZone(StandardTimeZone standardTimeZone)
standardTimeZone - the standard time zonepublic SerializableTimeZone(int offset,
SerializableTimeZoneTime standardTime,
SerializableTimeZoneTime daylightTime)
offset - the offsetstandardTime - the standard timedaylightTime - the daylight timepublic int getOffset()
public void setOffset(int offset)
offset - the new offsetpublic SerializableTimeZoneTime getStandardTime()
public void setStandardTime(SerializableTimeZoneTime standardTime)
standardTime - the new standard timepublic SerializableTimeZoneTime getDaylightTime()
public void setDaylightTime(SerializableTimeZoneTime daylightTime)
daylightTime - the new daylight time