|
Joda Time API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.joda.time.DateTimeZone
|
+--org.joda.time.tz.FixedDateTimeZone
Basic DateTimeZone implementation that has a fixed name key and offsets.
| Field Summary |
| Fields inherited from class org.joda.time.DateTimeZone |
UTC |
| Constructor Summary | |
FixedDateTimeZone(java.lang.String id,
java.lang.String nameKey,
int wallOffset,
int standardOffset)
|
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Compare this datetime zone with another. |
java.lang.String |
getNameKey(long millis)
Returns a non-localized name that is unique to this time zone. |
int |
getOffset(long millis)
Gets the millisecond offset to add to UTC to get local time. |
int |
getOffsetFromLocal(long millisLocal)
Gets the millisecond offset to subtract from local time to get UTC time. |
int |
getStandardOffset(long millis)
Gets the standard millisecond offset to add to UTC to get local time, when standard time is in effect. |
long |
nextTransition(long millis)
Advances the given instant to where the time zone offset or name changes. |
long |
previousTransition(long millis)
Retreats the given instant to where the time zone offset or name changes. |
| Methods inherited from class org.joda.time.DateTimeZone |
getAvailableIDs, getDefault, getID, getInstance, getInstance, getName, getName, getNameProvider, getOffset, getProvider, getShortName, getShortName, hashCode, setDefault, setNameProvider, setProvider, toString, toTimeZone, writeReplace |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FixedDateTimeZone(java.lang.String id,
java.lang.String nameKey,
int wallOffset,
int standardOffset)
| Method Detail |
public java.lang.String getNameKey(long millis)
DateTimeZone
getNameKey in class DateTimeZonemillis - milliseconds from 1970-01-01T00:00:00Z to get the name for
public int getOffset(long millis)
DateTimeZone
getOffset in class DateTimeZonemillis - milliseconds from 1970-01-01T00:00:00Z to get the offset for
public int getStandardOffset(long millis)
DateTimeZone
getStandardOffset in class DateTimeZonemillis - milliseconds from 1970-01-01T00:00:00Z to get the offset for
public int getOffsetFromLocal(long millisLocal)
DateTimeZonemillisLocal == millisUTC + getOffset(millisUTC) millisUTC == millisLocal - getOffsetFromLocal(millisLocal)Note: After calculating millisLocal, some error may be introduced. At offset transitions (due to DST or other historical changes), ranges of local times may map to different UTC times.
getOffsetFromLocal in class DateTimeZonemillisLocal - the millisecond instant, relative to this time zone, to
get the offset for
public long nextTransition(long millis)
DateTimeZone
nextTransition in class DateTimeZonemillis - milliseconds from 1970-01-01T00:00:00Z
public long previousTransition(long millis)
DateTimeZone
previousTransition in class DateTimeZonemillis - milliseconds from 1970-01-01T00:00:00Z
public boolean equals(java.lang.Object obj)
DateTimeZone
equals in class DateTimeZone
|
Joda Time API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||