Java org.joda.time DateTimeZone fields, constructors, methods, implement or subclass

Example usage for Java org.joda.time DateTimeZone fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.joda.time DateTimeZone.

The text is from its open source code.

Subclass

org.joda.time.DateTimeZone has subclasses.
Click this link to see all its subclasses.

Field

DateTimeZoneUTC
The time zone for Universal Coordinated Time

Method

longconvertLocalToUTC(long instantLocal, boolean strict)
Converts a local instant to an actual UTC instant with the same local time.
longconvertUTCToLocal(long instantUTC)
Converts an actual UTC instant to a local instant with the same local time.
booleanequals(Object object)
Compare this datetime zone with another.
DateTimeZoneforID(String id)
Gets a time zone instance for the specified time zone id.
DateTimeZoneforOffsetHours(int hoursOffset)
Gets a time zone instance for the specified offset to UTC in hours.
DateTimeZoneforOffsetHoursMinutes(int hoursOffset, int minutesOffset)
Gets a time zone instance for the specified offset to UTC in hours and minutes.
DateTimeZoneforOffsetMillis(int millisOffset)
Gets a time zone instance for the specified offset to UTC in milliseconds.
DateTimeZoneforTimeZone(TimeZone zone)
Gets a time zone instance for a JDK TimeZone.
SetgetAvailableIDs()
Gets all the available IDs supported.
DateTimeZonegetDefault()
Gets the default time zone.
StringgetID()
Gets the ID of this datetime zone.
longgetMillisKeepLocal(DateTimeZone newZone, long oldInstant)
Gets the millisecond instant in another zone keeping the same local time.
StringgetName(long instant)
Gets the long name of this datetime zone suitable for display using the default locale.
StringgetNameKey(long instant)
Returns a non-localized name that is unique to this time zone.
intgetOffset(long instant)
Gets the millisecond offset to add to UTC to get local time.
intgetOffset(ReadableInstant instant)
Gets the millisecond offset to add to UTC to get local time.
intgetOffsetFromLocal(long instantLocal)
Gets the millisecond offset to subtract from local time to get UTC time.
ProvidergetProvider()
Gets the zone provider factory.
StringgetShortName(long instant)
Gets the short name of this datetime zone suitable for display using the default locale.
intgetStandardOffset(long instant)
Gets the raw millisecond offset to add to UTC.
booleanisFixed()
Returns true if this time zone has no transitions.
booleanisLocalDateTimeGap(LocalDateTime localDateTime)
Checks if the given LocalDateTime is within a gap.
booleanisStandardOffset(long instant)
Checks whether, at a particular instant, the offset is raw or not.
longnextTransition(long instant)
Advances the given instant to where the time zone offset or name changes.
longpreviousTransition(long instant)
Retreats the given instant to where the time zone offset or name changes.
voidsetDefault(DateTimeZone zone)
Sets the default time zone.
voidsetProvider(Provider provider)
Sets the zone provider factory.
StringtoString()
Gets the datetime zone as a string, which is simply its ID.
java.util.TimeZonetoTimeZone()
Get the datetime zone as a java.util.TimeZone .