java.lang.Object | ||
↳ | org.joda.time.DateTimeZone | |
↳ | org.joda.time.tz.FixedDateTimeZone |
Basic DateTimeZone implementation that has a fixed name key and offsets.
FixedDateTimeZone is thread-safe and immutable.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.joda.time.DateTimeZone
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compare this datetime zone with another.
| |||||||||||
Returns a non-localized name that is unique to this time zone.
| |||||||||||
Gets the millisecond offset to add to UTC to get local time.
| |||||||||||
Gets the millisecond offset to subtract from local time to get UTC time.
| |||||||||||
Gets the standard millisecond offset to add to UTC to get local time,
when standard time is in effect.
| |||||||||||
Gets a hash code compatable with equals.
| |||||||||||
Returns true if this time zone has no transitions.
| |||||||||||
Advances the given instant to where the time zone offset or name changes.
| |||||||||||
Retreats the given instant to where the time zone offset or name changes.
| |||||||||||
Override to return the correct timzone instance.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.joda.time.DateTimeZone
| |||||||||||
From class
java.lang.Object
|
Compare this datetime zone with another.
obj | the object to compare with |
---|
Returns a non-localized name that is unique to this time zone. It can be combined with id to form a unique key for fetching localized names.
instant | milliseconds from 1970-01-01T00:00:00Z to get the name for |
---|
Gets the millisecond offset to add to UTC to get local time.
instant | milliseconds from 1970-01-01T00:00:00Z to get the offset for |
---|
Gets the millisecond offset to subtract from local time to get UTC time. This offset can be used to undo adding the offset obtained by getOffset.
millisLocal == 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.
This method will return an offset suitable for calculating an instant
after any DST gap. For example, consider a zone with a cutover
from 01:00 to 01:59:
Input: 00:00 Output: 00:00
Input: 00:30 Output: 00:30
Input: 01:00 Output: 02:00
Input: 01:30 Output: 02:30
Input: 02:00 Output: 02:00
Input: 02:30 Output: 02:30
NOTE: The behaviour of this method changed in v1.5, with the emphasis on returning a consistent result later along the time-line (shown above).
instantLocal | the millisecond instant, relative to this time zone, to get the offset for |
---|
Gets the standard millisecond offset to add to UTC to get local time, when standard time is in effect.
instant | milliseconds from 1970-01-01T00:00:00Z to get the offset for |
---|
Gets a hash code compatable with equals.
Returns true if this time zone has no transitions.
Advances the given instant to where the time zone offset or name changes. If the instant returned is exactly the same as passed in, then no changes occur after the given instant.
instant | milliseconds from 1970-01-01T00:00:00Z |
---|
Retreats the given instant to where the time zone offset or name changes. If the instant returned is exactly the same as passed in, then no changes occur before the given instant.
instant | milliseconds from 1970-01-01T00:00:00Z |
---|
Override to return the correct timzone instance.