java.lang.Object | ||
↳ | org.joda.time.DateTimeZone | |
↳ | org.joda.time.tz.CachedDateTimeZone |
Improves the performance of requesting time zone offsets and name keys by caching the results. Time zones that have simple rules or are fixed should not be cached, as it is unlikely to improve performance.
CachedDateTimeZone is thread-safe and immutable.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.joda.time.DateTimeZone
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compare this datetime zone with another.
| |||||||||||
Returns a new CachedDateTimeZone unless given zone is already cached.
| |||||||||||
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 standard millisecond offset to add to UTC to get local time,
when standard time is in effect.
| |||||||||||
Returns the DateTimeZone being wrapped.
| |||||||||||
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.
|
[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 new CachedDateTimeZone unless given zone is already cached.
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 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 |
---|