Example usage for Java org.joda.time DateTimeZone fields, constructors, methods, implement or subclass
The text is from its open source code.
DateTimeZone | UTC The time zone for Universal Coordinated Time |
long | convertLocalToUTC(long instantLocal, boolean strict) Converts a local instant to an actual UTC instant with the same local time. |
long | convertUTCToLocal(long instantUTC) Converts an actual UTC instant to a local instant with the same local time. |
boolean | equals(Object object) Compare this datetime zone with another. |
DateTimeZone | forID(String id) Gets a time zone instance for the specified time zone id. |
DateTimeZone | forOffsetHours(int hoursOffset) Gets a time zone instance for the specified offset to UTC in hours. |
DateTimeZone | forOffsetHoursMinutes(int hoursOffset, int minutesOffset) Gets a time zone instance for the specified offset to UTC in hours and minutes. |
DateTimeZone | forOffsetMillis(int millisOffset) Gets a time zone instance for the specified offset to UTC in milliseconds. |
DateTimeZone | forTimeZone(TimeZone zone) Gets a time zone instance for a JDK TimeZone. |
Set | getAvailableIDs() Gets all the available IDs supported. |
DateTimeZone | getDefault() Gets the default time zone. |
String | getID() Gets the ID of this datetime zone. |
long | getMillisKeepLocal(DateTimeZone newZone, long oldInstant) Gets the millisecond instant in another zone keeping the same local time. |
String | getName(long instant) Gets the long name of this datetime zone suitable for display using the default locale. |
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 | getOffset(ReadableInstant instant) Gets the millisecond offset to add to UTC to get local time. |
int | getOffsetFromLocal(long instantLocal) Gets the millisecond offset to subtract from local time to get UTC time. |
Provider | getProvider() Gets the zone provider factory. |
String | getShortName(long instant) Gets the short name of this datetime zone suitable for display using the default locale. |
int | getStandardOffset(long instant) Gets the raw millisecond offset to add to UTC. |
boolean | isFixed() Returns true if this time zone has no transitions. |
boolean | isLocalDateTimeGap(LocalDateTime localDateTime) Checks if the given LocalDateTime is within a gap. |
boolean | isStandardOffset(long instant) Checks whether, at a particular instant, the offset is raw or not. |
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. |
void | setDefault(DateTimeZone zone) Sets the default time zone. |
void | setProvider(Provider provider) Sets the zone provider factory. |
String | toString() Gets the datetime zone as a string, which is simply its ID. |
java.util.TimeZone | toTimeZone() Get the datetime zone as a java.util.TimeZone . |