Uses of Class
org.joda.time.DateTimeZone
-
Packages that use DateTimeZone Package Description org.joda.time Provides support for dates, times, time zones, durations, intervals, and partials.org.joda.time.base Implementation package providing abstract and base time classes.org.joda.time.chrono Package containing the chronology classes which define the calendar systems.org.joda.time.convert Implementation package providing conversion between date and time objects.org.joda.time.format Provides printing and parsing support for instants and durations.org.joda.time.tz Implementation package supporting the time zones. -
-
Uses of DateTimeZone in org.joda.time
Subclasses of DateTimeZone in org.joda.time Modifier and Type Class Description (package private) class
UTCDateTimeZone
A DateTimeZone implementation for UTC.Fields in org.joda.time declared as DateTimeZone Modifier and Type Field Description (package private) static DateTimeZone
UTCDateTimeZone. INSTANCE
static DateTimeZone
DateTimeZone. UTC
The time zone for Universal Coordinated TimeFields in org.joda.time with type parameters of type DateTimeZone Modifier and Type Field Description private static java.util.concurrent.atomic.AtomicReference<DateTimeZone>
DateTimeZone. cDefault
The default time zone.private static java.util.concurrent.atomic.AtomicReference<java.util.Map<java.lang.String,DateTimeZone>>
DateTimeUtils. cZoneNames
The default names.Methods in org.joda.time that return DateTimeZone Modifier and Type Method Description private static DateTimeZone
DateTimeZone. fixedOffsetZone(java.lang.String id, int offset)
Gets the zone using a fixed offset amount.static DateTimeZone
DateTimeZone. forID(java.lang.String id)
Gets a time zone instance for the specified time zone id.static DateTimeZone
DateTimeZone. forOffsetHours(int hoursOffset)
Gets a time zone instance for the specified offset to UTC in hours.static DateTimeZone
DateTimeZone. forOffsetHoursMinutes(int hoursOffset, int minutesOffset)
Gets a time zone instance for the specified offset to UTC in hours and minutes.static DateTimeZone
DateTimeZone. forOffsetMillis(int millisOffset)
Gets a time zone instance for the specified offset to UTC in milliseconds.static DateTimeZone
DateTimeZone. forTimeZone(java.util.TimeZone zone)
Gets a time zone instance for a JDK TimeZone.static DateTimeZone
DateTimeZone. getDefault()
Gets the default time zone.abstract DateTimeZone
Chronology. getZone()
Returns the DateTimeZone that this Chronology operates in, or null if unspecified.static DateTimeZone
DateTimeUtils. getZone(DateTimeZone zone)
Gets the zone handling null.DateTimeZone
ReadableInstant. getZone()
Gets the time zone of the instant from the chronology.Methods in org.joda.time that return types with arguments of type DateTimeZone Modifier and Type Method Description private static java.util.Map<java.lang.String,DateTimeZone>
DateTimeUtils. buildDefaultTimeZoneNames()
static java.util.Map<java.lang.String,DateTimeZone>
DateTimeUtils. getDefaultTimeZoneNames()
Gets the default map of time zone names.Methods in org.joda.time with parameters of type DateTimeZone Modifier and Type Method Description long
DateTimeZone. getMillisKeepLocal(DateTimeZone newZone, long oldInstant)
Gets the millisecond instant in another zone keeping the same local time.static DateTimeZone
DateTimeUtils. getZone(DateTimeZone zone)
Gets the zone handling null.static DateMidnight
DateMidnight. now(DateTimeZone zone)
Deprecated.Obtains aDateMidnight
set to the current system millisecond time usingISOChronology
in the specified time zone.static DateTime
DateTime. now(DateTimeZone zone)
Obtains aDateTime
set to the current system millisecond time usingISOChronology
in the specified time zone.static LocalDate
LocalDate. now(DateTimeZone zone)
Obtains aLocalDate
set to the current system millisecond time usingISOChronology
in the specified time zone.static LocalDateTime
LocalDateTime. now(DateTimeZone zone)
Obtains aLocalDateTime
set to the current system millisecond time usingISOChronology
in the specified time zone.static LocalTime
LocalTime. now(DateTimeZone zone)
Obtains aLocalTime
set to the current system millisecond time usingISOChronology
in the specified time zone.static MonthDay
MonthDay. now(DateTimeZone zone)
Obtains aMonthDay
set to the current system millisecond time usingISOChronology
in the specified time zone.static MutableDateTime
MutableDateTime. now(DateTimeZone zone)
Obtains aMutableDateTime
set to the current system millisecond time usingISOChronology
in the specified time zone.static YearMonth
YearMonth. now(DateTimeZone zone)
Obtains aYearMonth
set to the current system millisecond time usingISOChronology
in the specified time zone.static void
DateTimeZone. setDefault(DateTimeZone zone)
Sets the default time zone.void
MutableDateTime. setZone(DateTimeZone newZone)
Sets the time zone of the datetime, changing the chronology and field values.void
ReadWritableInstant. setZone(DateTimeZone zone)
Sets the time zone of the datetime, changing the chronology and field values.void
MutableDateTime. setZoneRetainFields(DateTimeZone newZone)
Sets the time zone of the datetime, changing the chronology and millisecond.void
ReadWritableInstant. setZoneRetainFields(DateTimeZone zone)
Sets the time zone of the datetime, changing the chronology and millisecond.DateMidnight
LocalDate. toDateMidnight(DateTimeZone zone)
Deprecated.DateMidnight is deprecatedDateMidnight
YearMonthDay. toDateMidnight(DateTimeZone zone)
Deprecated.Converts this object to a DateMidnight.DateTime
DateTime. toDateTime(DateTimeZone zone)
Get this object as a DateTime, returningthis
if possible.DateTime
LocalDate. toDateTime(LocalTime time, DateTimeZone zone)
Converts this object to a DateTime using a LocalTime to fill in the missing fields.DateTime
LocalDateTime. toDateTime(DateTimeZone zone)
Converts this object to a DateTime using the specified zone.DateTime
YearMonthDay. toDateTime(TimeOfDay time, DateTimeZone zone)
Deprecated.Converts this object to a DateTime using a TimeOfDay to fill in the missing fields.DateTime
LocalDate. toDateTimeAtCurrentTime(DateTimeZone zone)
Converts this LocalDate to a full datetime using the specified time zone setting the date fields from this instance and the time fields from the current time.DateTime
YearMonthDay. toDateTimeAtCurrentTime(DateTimeZone zone)
Deprecated.Converts this partial to a full datetime using the specified time zone setting the date fields from this instance and the time fields from the current time.DateTime
LocalDate. toDateTimeAtMidnight(DateTimeZone zone)
Deprecated.UseLocalDate.toDateTimeAtStartOfDay(DateTimeZone)
which won't throw an exceptionDateTime
YearMonthDay. toDateTimeAtMidnight(DateTimeZone zone)
Deprecated.Converts this YearMonthDay to a full datetime at midnight using the specified time zone.DateTime
LocalDate. toDateTimeAtStartOfDay(DateTimeZone zone)
Converts this LocalDate to a full datetime at the earliest valid time for the date using the specified time zone.DateTime
LocalTime. toDateTimeToday(DateTimeZone zone)
Converts this LocalTime to a full datetime using the specified time zone setting the time fields from this instance and the date fields from the current time.DateTime
TimeOfDay. toDateTimeToday(DateTimeZone zone)
Deprecated.Converts this partial to a full datetime using the specified time zone setting the time fields from this instance and the date fields from the current time.Interval
LocalDate. toInterval(DateTimeZone zone)
Converts this object to an Interval representing the whole day.Interval
YearMonth. toInterval(DateTimeZone zone)
Converts this object to an Interval representing the whole month.Interval
YearMonthDay. toInterval(DateTimeZone zone)
Deprecated.Converts this object to an Interval representing the whole day.abstract Chronology
Chronology. withZone(DateTimeZone zone)
Returns an instance of this Chronology that operates in any time zone.DateTime
DateTime. withZone(DateTimeZone newZone)
Returns a copy of this datetime with a different time zone, preserving the millisecond instant.DateMidnight
DateMidnight. withZoneRetainFields(DateTimeZone newZone)
Deprecated.Returns a copy of this date with a different time zone, preserving the day The returned object will have a local time of midnight in the new zone on the same day as the original instant.DateTime
DateTime. withZoneRetainFields(DateTimeZone newZone)
Returns a copy of this datetime with a different time zone, preserving the field values.Method parameters in org.joda.time with type arguments of type DateTimeZone Modifier and Type Method Description private static void
DateTimeUtils. put(java.util.Map<java.lang.String,DateTimeZone> map, java.lang.String name, java.lang.String id)
static void
DateTimeUtils. setDefaultTimeZoneNames(java.util.Map<java.lang.String,DateTimeZone> names)
Sets the default map of time zone names.Constructors in org.joda.time with parameters of type DateTimeZone Constructor Description DateMidnight(int year, int monthOfYear, int dayOfMonth, DateTimeZone zone)
Deprecated.Constructs an instance from datetime field values usingISOChronology
in the specified time zone.DateMidnight(long instant, DateTimeZone zone)
Deprecated.Constructs an instance set to the milliseconds from 1970-01-01T00:00:00Z usingISOChronology
in the specified time zone.DateMidnight(java.lang.Object instant, DateTimeZone zone)
Deprecated.Constructs an instance from an Object that represents a datetime, forcing the time zone to that specified.DateMidnight(DateTimeZone zone)
Deprecated.Constructs an instance set to the current system millisecond time usingISOChronology
in the specified time zone.DateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond, DateTimeZone zone)
Constructs an instance from datetime field values usingISOChronology
in the specified time zone.DateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, DateTimeZone zone)
Constructs an instance from datetime field values usingISOChronology
in the specified time zone.DateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, DateTimeZone zone)
Constructs an instance from datetime field values usingISOChronology
in the specified time zone.DateTime(long instant, DateTimeZone zone)
Constructs an instance set to the milliseconds from 1970-01-01T00:00:00Z usingISOChronology
in the specified time zone.DateTime(java.lang.Object instant, DateTimeZone zone)
Constructs an instance from an Object that represents a datetime, forcing the time zone to that specified.DateTime(DateTimeZone zone)
Constructs an instance set to the current system millisecond time usingISOChronology
in the specified time zone.Interval(long startInstant, long endInstant, DateTimeZone zone)
Constructs an interval from a start and end instant with the ISO default chronology in the specified time zone.LocalDate(long instant, DateTimeZone zone)
Constructs an instance set to the local time defined by the specified instant evaluated using ISO chronology in the specified zone.LocalDate(java.lang.Object instant, DateTimeZone zone)
Constructs an instance from an Object that represents a datetime, forcing the time zone to that specified.LocalDate(DateTimeZone zone)
Constructs an instance set to the current local time evaluated using ISO chronology in the specified zone.LocalDateTime(long instant, DateTimeZone zone)
Constructs an instance set to the local time defined by the specified instant evaluated using ISO chronology in the specified zone.LocalDateTime(java.lang.Object instant, DateTimeZone zone)
Constructs an instance from an Object that represents a datetime, forcing the time zone to that specified.LocalDateTime(DateTimeZone zone)
Constructs an instance set to the current local time evaluated using ISO chronology in the specified zone.LocalTime(long instant, DateTimeZone zone)
Constructs an instance set to the local time defined by the specified instant evaluated using ISO chronology in the specified zone.LocalTime(java.lang.Object instant, DateTimeZone zone)
Constructs an instance from an Object that represents a datetime, forcing the time zone to that specified.LocalTime(DateTimeZone zone)
Constructs an instance set to the current local time evaluated using ISO chronology in the specified zone.MonthDay(DateTimeZone zone)
Constructs a MonthDay with the current month-day, using ISOChronology in the specified zone to extract the fields.MutableDateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond, DateTimeZone zone)
Constructs an instance from datetime field values usingISOChronology
in the specified time zone.MutableDateTime(long instant, DateTimeZone zone)
Constructs an instance set to the milliseconds from 1970-01-01T00:00:00Z usingISOChronology
in the specified time zone.MutableDateTime(java.lang.Object instant, DateTimeZone zone)
Constructs an instance from an Object that represents a datetime, forcing the time zone to that specified.MutableDateTime(DateTimeZone zone)
Constructs an instance set to the current system millisecond time usingISOChronology
in the specified time zone.TimeOfDay(DateTimeZone zone)
Deprecated.Constructs a TimeOfDay with the current time, using ISOChronology in the specified zone to extract the fields.YearMonth(DateTimeZone zone)
Constructs a YearMonth with the current year-month, using ISOChronology in the specified zone to extract the fields.YearMonthDay(DateTimeZone zone)
Deprecated.Constructs a YearMonthDay with the current date, using ISOChronology in the specified zone to extract the fields. -
Uses of DateTimeZone in org.joda.time.base
Methods in org.joda.time.base that return DateTimeZone Modifier and Type Method Description DateTimeZone
AbstractInstant. getZone()
Gets the time zone of the instant from the chronology.Methods in org.joda.time.base with parameters of type DateTimeZone Modifier and Type Method Description DateTime
AbstractInstant. toDateTime(DateTimeZone zone)
Get this object as a DateTime using the same chronology but a different zone.MutableDateTime
AbstractInstant. toMutableDateTime(DateTimeZone zone)
Get this object as a MutableDateTime using the same chronology but a different zone.Constructors in org.joda.time.base with parameters of type DateTimeZone Constructor Description BaseDateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond, DateTimeZone zone)
Constructs an instance from datetime field values usingISOChronology
in the specified time zone.BaseDateTime(long instant, DateTimeZone zone)
Constructs an instance set to the milliseconds from 1970-01-01T00:00:00Z usingISOChronology
in the specified time zone.BaseDateTime(java.lang.Object instant, DateTimeZone zone)
Constructs an instance from an Object that represents a datetime, forcing the time zone to that specified.BaseDateTime(DateTimeZone zone)
Constructs an instance set to the current system millisecond time usingISOChronology
in the specified time zone. -
Uses of DateTimeZone in org.joda.time.chrono
Fields in org.joda.time.chrono declared as DateTimeZone Modifier and Type Field Description private DateTimeZone
ISOChronology.Stub. iZone
(package private) DateTimeZone
ZonedChronology.ZonedDateTimeField. iZone
(package private) DateTimeZone
ZonedChronology.ZonedDurationField. iZone
private DateTimeZone
GJCacheKey. zone
Fields in org.joda.time.chrono with type parameters of type DateTimeZone Modifier and Type Field Description private static java.util.concurrent.ConcurrentHashMap<DateTimeZone,BuddhistChronology>
BuddhistChronology. cCache
Cache of zone to chronologyprivate static java.util.concurrent.ConcurrentHashMap<DateTimeZone,CopticChronology[]>
CopticChronology. cCache
Cache of zone to chronology arraysprivate static java.util.concurrent.ConcurrentHashMap<DateTimeZone,EthiopicChronology[]>
EthiopicChronology. cCache
Cache of zone to chronology arraysprivate static java.util.concurrent.ConcurrentHashMap<DateTimeZone,GregorianChronology[]>
GregorianChronology. cCache
Cache of zone to chronology arraysprivate static java.util.concurrent.ConcurrentHashMap<DateTimeZone,IslamicChronology[]>
IslamicChronology. cCache
Cache of zone to chronology arraysprivate static java.util.concurrent.ConcurrentHashMap<DateTimeZone,ISOChronology>
ISOChronology. cCache
Cache of zone to chronologyprivate static java.util.concurrent.ConcurrentHashMap<DateTimeZone,JulianChronology[]>
JulianChronology. cCache
Cache of zone to chronology arraysMethods in org.joda.time.chrono that return DateTimeZone Modifier and Type Method Description DateTimeZone
AssembledChronology. getZone()
abstract DateTimeZone
BaseChronology. getZone()
Returns the DateTimeZone that this Chronology operates in, or null if unspecified.DateTimeZone
BasicChronology. getZone()
DateTimeZone
GJChronology. getZone()
DateTimeZone
ZonedChronology. getZone()
Methods in org.joda.time.chrono with parameters of type DateTimeZone Modifier and Type Method Description static BuddhistChronology
BuddhistChronology. getInstance(DateTimeZone zone)
Standard instance of a Buddhist Chronology, that matches Sun's BuddhistCalendar class.static CopticChronology
CopticChronology. getInstance(DateTimeZone zone)
Gets an instance of the CopticChronology in the given time zone.static CopticChronology
CopticChronology. getInstance(DateTimeZone zone, int minDaysInFirstWeek)
Gets an instance of the CopticChronology in the given time zone.static EthiopicChronology
EthiopicChronology. getInstance(DateTimeZone zone)
Gets an instance of the EthiopicChronology in the given time zone.static EthiopicChronology
EthiopicChronology. getInstance(DateTimeZone zone, int minDaysInFirstWeek)
Gets an instance of the EthiopicChronology in the given time zone.static GJChronology
GJChronology. getInstance(DateTimeZone zone)
Factory method returns instances of the GJ cutover chronology.static GJChronology
GJChronology. getInstance(DateTimeZone zone, long gregorianCutover, int minDaysInFirstWeek)
Factory method returns instances of the GJ cutover chronology.static GJChronology
GJChronology. getInstance(DateTimeZone zone, ReadableInstant gregorianCutover)
Factory method returns instances of the GJ cutover chronology.static GJChronology
GJChronology. getInstance(DateTimeZone zone, ReadableInstant gregorianCutover, int minDaysInFirstWeek)
Factory method returns instances of the GJ cutover chronology.static GregorianChronology
GregorianChronology. getInstance(DateTimeZone zone)
Gets an instance of the GregorianChronology in the given time zone.static GregorianChronology
GregorianChronology. getInstance(DateTimeZone zone, int minDaysInFirstWeek)
Gets an instance of the GregorianChronology in the given time zone.static IslamicChronology
IslamicChronology. getInstance(DateTimeZone zone)
Gets an instance of the IslamicChronology in the given time zone.static IslamicChronology
IslamicChronology. getInstance(DateTimeZone zone, IslamicChronology.LeapYearPatternType leapYears)
Gets an instance of the IslamicChronology in the given time zone.static ISOChronology
ISOChronology. getInstance(DateTimeZone zone)
Gets an instance of the ISOChronology in the given time zone.static JulianChronology
JulianChronology. getInstance(DateTimeZone zone)
Gets an instance of the JulianChronology in the given time zone.static JulianChronology
JulianChronology. getInstance(DateTimeZone zone, int minDaysInFirstWeek)
Gets an instance of the JulianChronology in the given time zone.static ZonedChronology
ZonedChronology. getInstance(Chronology base, DateTimeZone zone)
Create a ZonedChronology for any chronology, overriding any time zone it may already have.abstract Chronology
BaseChronology. withZone(DateTimeZone zone)
Returns an instance of this Chronology that operates in any time zone.Chronology
BuddhistChronology. withZone(DateTimeZone zone)
Gets the Chronology in a specific time zone.Chronology
CopticChronology. withZone(DateTimeZone zone)
Gets the Chronology in a specific time zone.Chronology
EthiopicChronology. withZone(DateTimeZone zone)
Gets the Chronology in a specific time zone.Chronology
GJChronology. withZone(DateTimeZone zone)
Gets the Chronology in a specific time zone.Chronology
GregorianChronology. withZone(DateTimeZone zone)
Gets the Chronology in a specific time zone.Chronology
IslamicChronology. withZone(DateTimeZone zone)
Gets the Chronology in a specific time zone.Chronology
ISOChronology. withZone(DateTimeZone zone)
Gets the Chronology in a specific time zone.Chronology
JulianChronology. withZone(DateTimeZone zone)
Gets the Chronology in a specific time zone.Chronology
LenientChronology. withZone(DateTimeZone zone)
Chronology
LimitChronology. withZone(DateTimeZone zone)
If this LimitChronology has the same time zone as the one given, then this is returned.Chronology
StrictChronology. withZone(DateTimeZone zone)
Chronology
ZonedChronology. withZone(DateTimeZone zone)
Constructors in org.joda.time.chrono with parameters of type DateTimeZone Constructor Description GJCacheKey(DateTimeZone zone, Instant cutoverInstant, int minDaysInFirstWeek)
Stub(DateTimeZone zone)
ZonedChronology(Chronology base, DateTimeZone zone)
Restricted constructorZonedDateTimeField(DateTimeField field, DateTimeZone zone, DurationField durationField, DurationField rangeDurationField, DurationField leapDurationField)
ZonedDurationField(DurationField field, DateTimeZone zone)
-
Uses of DateTimeZone in org.joda.time.convert
Methods in org.joda.time.convert with parameters of type DateTimeZone Modifier and Type Method Description Chronology
AbstractConverter. getChronology(java.lang.Object object, DateTimeZone zone)
Extracts the chronology from an object of this converter's type where the time zone is specified.Chronology
CalendarConverter. getChronology(java.lang.Object object, DateTimeZone zone)
Gets the chronology, which is the GJChronology if a GregorianCalendar is used, BuddhistChronology if a BuddhistCalendar is used or ISOChronology otherwise.Chronology
InstantConverter. getChronology(java.lang.Object object, DateTimeZone zone)
Extracts the chronology from an object of this converter's type where the time zone is specified.Chronology
PartialConverter. getChronology(java.lang.Object object, DateTimeZone zone)
Extracts the chronology from an object of this converter's type where the time zone is specified.Chronology
ReadableInstantConverter. getChronology(java.lang.Object object, DateTimeZone zone)
Gets the chronology, which is taken from the ReadableInstant.Chronology
ReadablePartialConverter. getChronology(java.lang.Object object, DateTimeZone zone)
Gets the chronology, which is taken from the ReadablePartial. -
Uses of DateTimeZone in org.joda.time.format
Fields in org.joda.time.format declared as DateTimeZone Modifier and Type Field Description private DateTimeZone
DateTimeParserBucket. iDefaultZone
The default zone from the constructor.private DateTimeZone
DateTimeFormatter. iZone
The zone to use as an override.private DateTimeZone
DateTimeParserBucket. iZone
The parsed zone, initialised to formatter zone.(package private) DateTimeZone
DateTimeParserBucket.SavedState. iZone
Fields in org.joda.time.format with type parameters of type DateTimeZone Modifier and Type Field Description private java.util.Map<java.lang.String,DateTimeZone>
DateTimeFormatterBuilder.TimeZoneName. iParseLookup
Methods in org.joda.time.format that return DateTimeZone Modifier and Type Method Description DateTimeZone
DateTimeFormatter. getZone()
Gets the zone to use as an override.DateTimeZone
DateTimeParserBucket. getZone()
Returns the time zone used by computeMillis.Methods in org.joda.time.format with parameters of type DateTimeZone Modifier and Type Method Description private java.lang.String
DateTimeFormatterBuilder.TimeZoneName. print(long instant, DateTimeZone displayZone, java.util.Locale locale)
void
DateTimeFormat.StyleFormatter. printTo(java.lang.Appendable appenadble, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale)
void
DateTimeFormatterBuilder.CharacterLiteral. printTo(java.lang.Appendable appendable, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale)
void
DateTimeFormatterBuilder.Composite. printTo(java.lang.Appendable appendable, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale)
void
DateTimeFormatterBuilder.Fraction. printTo(java.lang.Appendable appendable, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale)
void
DateTimeFormatterBuilder.PaddedNumber. printTo(java.lang.Appendable appendable, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale)
void
DateTimeFormatterBuilder.StringLiteral. printTo(java.lang.Appendable appendable, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale)
void
DateTimeFormatterBuilder.TextField. printTo(java.lang.Appendable appendable, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale)
void
DateTimeFormatterBuilder.TimeZoneId. printTo(java.lang.Appendable appendable, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale)
void
DateTimeFormatterBuilder.TimeZoneName. printTo(java.lang.Appendable appendable, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale)
void
DateTimeFormatterBuilder.TimeZoneOffset. printTo(java.lang.Appendable buf, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale)
void
DateTimeFormatterBuilder.TwoDigitYear. printTo(java.lang.Appendable appendable, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale)
void
DateTimeFormatterBuilder.UnpaddedNumber. printTo(java.lang.Appendable appendable, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale)
void
DateTimePrinter. printTo(java.io.Writer out, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale)
Prints an instant from milliseconds since 1970-01-01T00:00:00Z, using the given Chronology.void
DateTimePrinter. printTo(java.lang.StringBuffer buf, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale)
Prints an instant from milliseconds since 1970-01-01T00:00:00Z, using the given Chronology.void
DateTimePrinterInternalPrinter. printTo(java.lang.Appendable appendable, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale)
void
InternalPrinter. printTo(java.lang.Appendable appendable, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale)
Prints an instant from milliseconds since 1970-01-01T00:00:00Z, using the given Chronology.void
InternalPrinterDateTimePrinter. printTo(java.io.Writer out, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale)
void
InternalPrinterDateTimePrinter. printTo(java.lang.Appendable appendable, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale)
void
InternalPrinterDateTimePrinter. printTo(java.lang.StringBuffer buf, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale)
void
DateTimeParserBucket. setZone(DateTimeZone zone)
Set a time zone to be used when computeMillis is called.DateTimeFormatter
DateTimeFormatter. withZone(DateTimeZone zone)
Returns a new formatter that will use the specified zone in preference to the zone of the printed object, or default zone on a parse.Method parameters in org.joda.time.format with type arguments of type DateTimeZone Modifier and Type Method Description DateTimeFormatterBuilder
DateTimeFormatterBuilder. appendTimeZoneName(java.util.Map<java.lang.String,DateTimeZone> parseLookup)
Instructs the printer to emit a locale-specific time zone name, providing a lookup for parsing.DateTimeFormatterBuilder
DateTimeFormatterBuilder. appendTimeZoneShortName(java.util.Map<java.lang.String,DateTimeZone> parseLookup)
Instructs the printer to emit a short locale-specific time zone name, providing a lookup for parsing.Constructors in org.joda.time.format with parameters of type DateTimeZone Constructor Description DateTimeFormatter(InternalPrinter printer, InternalParser parser, java.util.Locale locale, boolean offsetParsed, Chronology chrono, DateTimeZone zone, java.lang.Integer pivotYear, int defaultYear)
Constructor.Constructor parameters in org.joda.time.format with type arguments of type DateTimeZone Constructor Description TimeZoneName(int type, java.util.Map<java.lang.String,DateTimeZone> parseLookup)
-
Uses of DateTimeZone in org.joda.time.tz
Subclasses of DateTimeZone in org.joda.time.tz Modifier and Type Class Description class
CachedDateTimeZone
Improves the performance of requesting time zone offsets and name keys by caching the results.private static class
DateTimeZoneBuilder.DSTZone
private static class
DateTimeZoneBuilder.PrecalculatedZone
class
FixedDateTimeZone
Basic DateTimeZone implementation that has a fixed name key and offsets.Fields in org.joda.time.tz declared as DateTimeZone Modifier and Type Field Description private DateTimeZone
CachedDateTimeZone. iZone
DateTimeZone
CachedDateTimeZone.Info. iZoneRef
Methods in org.joda.time.tz that return DateTimeZone Modifier and Type Method Description private static DateTimeZone
DateTimeZoneBuilder. buildFixedZone(java.lang.String id, java.lang.String nameKey, int wallOffset, int standardOffset)
DateTimeZone
CachedDateTimeZone. getUncachedZone()
Returns the DateTimeZone being wrapped.DateTimeZone
Provider. getZone(java.lang.String id)
Retrieves a DateTimeZone for the given id.DateTimeZone
UTCProvider. getZone(java.lang.String id)
ReturnsUTC
for"UTC"
, null otherwise.DateTimeZone
ZoneInfoProvider. getZone(java.lang.String id)
If an error is thrown while loading zone data, the exception is logged to system error and null is returned for this and all future requests.private DateTimeZone
ZoneInfoProvider. loadZoneData(java.lang.String id)
Loads the time zone data for one id.static DateTimeZone
DateTimeZoneBuilder. readFrom(java.io.DataInput in, java.lang.String id)
Decodes a built DateTimeZone from the given stream, as encoded by writeTo.static DateTimeZone
DateTimeZoneBuilder. readFrom(java.io.InputStream in, java.lang.String id)
Decodes a built DateTimeZone from the given stream, as encoded by writeTo.DateTimeZone
DateTimeZoneBuilder. toDateTimeZone(java.lang.String id, boolean outputID)
Processes all the rules and builds a DateTimeZone.Methods in org.joda.time.tz that return types with arguments of type DateTimeZone Modifier and Type Method Description java.util.Map<java.lang.String,DateTimeZone>
ZoneInfoCompiler. compile(java.io.File outputDir, java.io.File[] sources)
Returns a map of ids to DateTimeZones.Methods in org.joda.time.tz with parameters of type DateTimeZone Modifier and Type Method Description static CachedDateTimeZone
CachedDateTimeZone. forZone(DateTimeZone zone)
Returns a new CachedDateTimeZone unless given zone is already cached.(package private) static boolean
ZoneInfoCompiler. test(java.lang.String id, DateTimeZone tz)
private void
ZoneInfoCompiler. writeZone(java.io.File outputDir, DateTimeZoneBuilder builder, DateTimeZone tz)
Method parameters in org.joda.time.tz with type arguments of type DateTimeZone Modifier and Type Method Description (package private) static void
ZoneInfoCompiler. writeZoneInfoMap(java.io.DataOutputStream dout, java.util.Map<java.lang.String,DateTimeZone> zimap)
Constructors in org.joda.time.tz with parameters of type DateTimeZone Constructor Description CachedDateTimeZone(DateTimeZone zone)
Info(DateTimeZone zone, long periodStart)
-