private static final class DateTimeZoneBuilder.DSTZone extends DateTimeZone
Modifier and Type | Field and Description |
---|---|
(package private) DateTimeZoneBuilder.Recurrence |
iEndRecurrence |
(package private) int |
iStandardOffset |
(package private) DateTimeZoneBuilder.Recurrence |
iStartRecurrence |
private static long |
serialVersionUID |
UTC
Constructor and Description |
---|
DSTZone(java.lang.String id,
int standardOffset,
DateTimeZoneBuilder.Recurrence startRecurrence,
DateTimeZoneBuilder.Recurrence endRecurrence) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compare this datetime zone with another.
|
private DateTimeZoneBuilder.Recurrence |
findMatchingRecurrence(long instant) |
java.lang.String |
getNameKey(long instant)
Returns a non-localized name that is unique to this time zone.
|
int |
getOffset(long instant)
Gets the millisecond offset to add to UTC to get local time.
|
int |
getStandardOffset(long instant)
Gets the standard millisecond offset to add to UTC to get local time,
when standard time is in effect.
|
boolean |
isFixed()
Returns true if this time zone has no transitions.
|
long |
nextTransition(long instant)
Advances the given instant to where the time zone offset or name changes.
|
long |
previousTransition(long instant)
Retreats the given instant to where the time zone offset or name changes.
|
(package private) static DateTimeZoneBuilder.DSTZone |
readFrom(java.io.DataInput in,
java.lang.String id) |
void |
writeTo(java.io.DataOutput out) |
adjustOffset, convertLocalToUTC, convertLocalToUTC, convertUTCToLocal, forID, forOffsetHours, forOffsetHoursMinutes, forOffsetMillis, forTimeZone, getAvailableIDs, getDefault, getID, getMillisKeepLocal, getName, getName, getNameProvider, getOffset, getOffsetFromLocal, getProvider, getShortName, getShortName, hashCode, isLocalDateTimeGap, isStandardOffset, setDefault, setNameProvider, setProvider, toString, toTimeZone, writeReplace
private static final long serialVersionUID
final int iStandardOffset
final DateTimeZoneBuilder.Recurrence iStartRecurrence
final DateTimeZoneBuilder.Recurrence iEndRecurrence
DSTZone(java.lang.String id, int standardOffset, DateTimeZoneBuilder.Recurrence startRecurrence, DateTimeZoneBuilder.Recurrence endRecurrence)
static DateTimeZoneBuilder.DSTZone readFrom(java.io.DataInput in, java.lang.String id) throws java.io.IOException
java.io.IOException
public java.lang.String getNameKey(long instant)
DateTimeZone
getNameKey
in class DateTimeZone
instant
- milliseconds from 1970-01-01T00:00:00Z to get the name forpublic int getOffset(long instant)
DateTimeZone
getOffset
in class DateTimeZone
instant
- milliseconds from 1970-01-01T00:00:00Z to get the offset forpublic int getStandardOffset(long instant)
DateTimeZone
getStandardOffset
in class DateTimeZone
instant
- milliseconds from 1970-01-01T00:00:00Z to get the offset forpublic boolean isFixed()
DateTimeZone
isFixed
in class DateTimeZone
public long nextTransition(long instant)
DateTimeZone
nextTransition
in class DateTimeZone
instant
- milliseconds from 1970-01-01T00:00:00Zpublic long previousTransition(long instant)
DateTimeZone
previousTransition
in class DateTimeZone
instant
- milliseconds from 1970-01-01T00:00:00Zpublic boolean equals(java.lang.Object obj)
DateTimeZone
equals
in class DateTimeZone
obj
- the object to compare withpublic void writeTo(java.io.DataOutput out) throws java.io.IOException
java.io.IOException
private DateTimeZoneBuilder.Recurrence findMatchingRecurrence(long instant)