Uses of Class
org.joda.time.DateTimeZone
Packages that use DateTimeZone
Package
Description
Provides support for dates, times, time zones, durations, intervals, and
partials.
Implementation package providing abstract and base time classes.
Package containing the chronology classes which define the calendar systems.
Implementation package providing conversion between date and time objects.
Provides printing and parsing support for instants and durations.
Implementation package supporting the time zones.
-
Uses of DateTimeZone in org.joda.time
Fields in org.joda.time declared as DateTimeZoneModifier and TypeFieldDescriptionstatic final DateTimeZoneDateTimeZone.UTCThe time zone for Universal Coordinated TimeMethods in org.joda.time that return DateTimeZoneModifier and TypeMethodDescriptionstatic DateTimeZoneGets a time zone instance for the specified time zone id.static DateTimeZoneDateTimeZone.forOffsetHours(int hoursOffset) Gets a time zone instance for the specified offset to UTC in hours.static DateTimeZoneDateTimeZone.forOffsetHoursMinutes(int hoursOffset, int minutesOffset) Gets a time zone instance for the specified offset to UTC in hours and minutes.static DateTimeZoneDateTimeZone.forOffsetMillis(int millisOffset) Gets a time zone instance for the specified offset to UTC in milliseconds.static DateTimeZoneDateTimeZone.forTimeZone(TimeZone zone) Gets a time zone instance for a JDK TimeZone.static DateTimeZoneDateTimeZone.getDefault()Gets the default time zone.abstract DateTimeZoneChronology.getZone()Returns the DateTimeZone that this Chronology operates in, or null if unspecified.static final DateTimeZoneDateTimeUtils.getZone(DateTimeZone zone) Gets the zone handling null.ReadableInstant.getZone()Gets the time zone of the instant from the chronology.Methods in org.joda.time that return types with arguments of type DateTimeZoneModifier and TypeMethodDescriptionstatic final Map<String, DateTimeZone> DateTimeUtils.getDefaultTimeZoneNames()Gets the default map of time zone names.Methods in org.joda.time with parameters of type DateTimeZoneModifier and TypeMethodDescriptionlongDateTimeZone.getMillisKeepLocal(DateTimeZone newZone, long oldInstant) Gets the millisecond instant in another zone keeping the same local time.static final DateTimeZoneDateTimeUtils.getZone(DateTimeZone zone) Gets the zone handling null.static DateMidnightDateMidnight.now(DateTimeZone zone) Deprecated.Obtains aDateMidnightset to the current system millisecond time usingISOChronologyin the specified time zone.static DateTimeDateTime.now(DateTimeZone zone) Obtains aDateTimeset to the current system millisecond time usingISOChronologyin the specified time zone.static LocalDateLocalDate.now(DateTimeZone zone) Obtains aLocalDateset to the current system millisecond time usingISOChronologyin the specified time zone.static LocalDateTimeLocalDateTime.now(DateTimeZone zone) Obtains aLocalDateTimeset to the current system millisecond time usingISOChronologyin the specified time zone.static LocalTimeLocalTime.now(DateTimeZone zone) Obtains aLocalTimeset to the current system millisecond time usingISOChronologyin the specified time zone.static MonthDayMonthDay.now(DateTimeZone zone) Obtains aMonthDayset to the current system millisecond time usingISOChronologyin the specified time zone.static MutableDateTimeMutableDateTime.now(DateTimeZone zone) Obtains aMutableDateTimeset to the current system millisecond time usingISOChronologyin the specified time zone.static YearMonthYearMonth.now(DateTimeZone zone) Obtains aYearMonthset to the current system millisecond time usingISOChronologyin the specified time zone.static voidDateTimeZone.setDefault(DateTimeZone zone) Sets the default time zone.voidMutableDateTime.setZone(DateTimeZone newZone) Sets the time zone of the datetime, changing the chronology and field values.voidReadWritableInstant.setZone(DateTimeZone zone) Sets the time zone of the datetime, changing the chronology and field values.voidMutableDateTime.setZoneRetainFields(DateTimeZone newZone) Sets the time zone of the datetime, changing the chronology and millisecond.voidReadWritableInstant.setZoneRetainFields(DateTimeZone zone) Sets the time zone of the datetime, changing the chronology and millisecond.LocalDate.toDateMidnight(DateTimeZone zone) Deprecated.DateMidnight is deprecatedYearMonthDay.toDateMidnight(DateTimeZone zone) Deprecated.Converts this object to a DateMidnight.DateTime.toDateTime(DateTimeZone zone) Get this object as a DateTime, returningthisif possible.LocalDate.toDateTime(LocalTime time, DateTimeZone zone) Converts this object to a DateTime using a LocalTime to fill in the missing fields.LocalDateTime.toDateTime(DateTimeZone zone) Converts this object to a DateTime using the specified zone.YearMonthDay.toDateTime(TimeOfDay time, DateTimeZone zone) Deprecated.Converts this object to a DateTime using a TimeOfDay to fill in the missing fields.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.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.LocalDate.toDateTimeAtMidnight(DateTimeZone zone) Deprecated.UseLocalDate.toDateTimeAtStartOfDay(DateTimeZone)which won't throw an exceptionYearMonthDay.toDateTimeAtMidnight(DateTimeZone zone) Deprecated.Converts this YearMonthDay to a full datetime at midnight using the specified time zone.LocalDate.toDateTimeAtStartOfDay(DateTimeZone zone) Converts this LocalDate to a full datetime at the earliest valid time for the date using the specified time zone.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.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.LocalDate.toInterval(DateTimeZone zone) Converts this object to an Interval representing the whole day.YearMonth.toInterval(DateTimeZone zone) Converts this object to an Interval representing the whole month.YearMonthDay.toInterval(DateTimeZone zone) Deprecated.Converts this object to an Interval representing the whole day.abstract ChronologyChronology.withZone(DateTimeZone zone) Returns an instance of this Chronology that operates in any time zone.DateTime.withZone(DateTimeZone newZone) Returns a copy of this datetime with a different time zone, preserving the millisecond instant.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.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 DateTimeZoneModifier and TypeMethodDescriptionstatic final voidDateTimeUtils.setDefaultTimeZoneNames(Map<String, DateTimeZone> names) Sets the default map of time zone names.Constructors in org.joda.time with parameters of type DateTimeZoneModifierConstructorDescriptionDateMidnight(int year, int monthOfYear, int dayOfMonth, DateTimeZone zone) Deprecated.Constructs an instance from datetime field values usingISOChronologyin the specified time zone.DateMidnight(long instant, DateTimeZone zone) Deprecated.Constructs an instance set to the milliseconds from 1970-01-01T00:00:00Z usingISOChronologyin the specified time zone.DateMidnight(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 usingISOChronologyin 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 usingISOChronologyin 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 usingISOChronologyin the specified time zone.DateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, DateTimeZone zone) Constructs an instance from datetime field values usingISOChronologyin the specified time zone.DateTime(long instant, DateTimeZone zone) Constructs an instance set to the milliseconds from 1970-01-01T00:00:00Z usingISOChronologyin the specified time zone.DateTime(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 usingISOChronologyin 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(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(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(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 usingISOChronologyin the specified time zone.MutableDateTime(long instant, DateTimeZone zone) Constructs an instance set to the milliseconds from 1970-01-01T00:00:00Z usingISOChronologyin the specified time zone.MutableDateTime(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 usingISOChronologyin 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 DateTimeZoneModifier and TypeMethodDescriptionAbstractInstant.getZone()Gets the time zone of the instant from the chronology.Methods in org.joda.time.base with parameters of type DateTimeZoneModifier and TypeMethodDescriptionAbstractInstant.toDateTime(DateTimeZone zone) Get this object as a DateTime using the same chronology but a different zone.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 DateTimeZoneModifierConstructorDescriptionBaseDateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond, DateTimeZone zone) Constructs an instance from datetime field values usingISOChronologyin the specified time zone.BaseDateTime(long instant, DateTimeZone zone) Constructs an instance set to the milliseconds from 1970-01-01T00:00:00Z usingISOChronologyin the specified time zone.BaseDateTime(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 usingISOChronologyin the specified time zone. -
Uses of DateTimeZone in org.joda.time.chrono
Methods in org.joda.time.chrono that return DateTimeZoneModifier and TypeMethodDescriptionAssembledChronology.getZone()abstract DateTimeZoneBaseChronology.getZone()Returns the DateTimeZone that this Chronology operates in, or null if unspecified.GJChronology.getZone()ZonedChronology.getZone()Methods in org.joda.time.chrono with parameters of type DateTimeZoneModifier and TypeMethodDescriptionstatic BuddhistChronologyBuddhistChronology.getInstance(DateTimeZone zone) Standard instance of a Buddhist Chronology, that matches Sun's BuddhistCalendar class.static CopticChronologyCopticChronology.getInstance(DateTimeZone zone) Gets an instance of the CopticChronology in the given time zone.static CopticChronologyCopticChronology.getInstance(DateTimeZone zone, int minDaysInFirstWeek) Gets an instance of the CopticChronology in the given time zone.static EthiopicChronologyEthiopicChronology.getInstance(DateTimeZone zone) Gets an instance of the EthiopicChronology in the given time zone.static EthiopicChronologyEthiopicChronology.getInstance(DateTimeZone zone, int minDaysInFirstWeek) Gets an instance of the EthiopicChronology in the given time zone.static GJChronologyGJChronology.getInstance(DateTimeZone zone) Factory method returns instances of the GJ cutover chronology.static GJChronologyGJChronology.getInstance(DateTimeZone zone, long gregorianCutover, int minDaysInFirstWeek) Factory method returns instances of the GJ cutover chronology.static GJChronologyGJChronology.getInstance(DateTimeZone zone, ReadableInstant gregorianCutover) Factory method returns instances of the GJ cutover chronology.static GJChronologyGJChronology.getInstance(DateTimeZone zone, ReadableInstant gregorianCutover, int minDaysInFirstWeek) Factory method returns instances of the GJ cutover chronology.static GregorianChronologyGregorianChronology.getInstance(DateTimeZone zone) Gets an instance of the GregorianChronology in the given time zone.static GregorianChronologyGregorianChronology.getInstance(DateTimeZone zone, int minDaysInFirstWeek) Gets an instance of the GregorianChronology in the given time zone.static IslamicChronologyIslamicChronology.getInstance(DateTimeZone zone) Gets an instance of the IslamicChronology in the given time zone.static IslamicChronologyIslamicChronology.getInstance(DateTimeZone zone, IslamicChronology.LeapYearPatternType leapYears) Gets an instance of the IslamicChronology in the given time zone.static ISOChronologyISOChronology.getInstance(DateTimeZone zone) Gets an instance of the ISOChronology in the given time zone.static JulianChronologyJulianChronology.getInstance(DateTimeZone zone) Gets an instance of the JulianChronology in the given time zone.static JulianChronologyJulianChronology.getInstance(DateTimeZone zone, int minDaysInFirstWeek) Gets an instance of the JulianChronology in the given time zone.static ZonedChronologyZonedChronology.getInstance(Chronology base, DateTimeZone zone) Create a ZonedChronology for any chronology, overriding any time zone it may already have.abstract ChronologyBaseChronology.withZone(DateTimeZone zone) Returns an instance of this Chronology that operates in any time zone.BuddhistChronology.withZone(DateTimeZone zone) Gets the Chronology in a specific time zone.CopticChronology.withZone(DateTimeZone zone) Gets the Chronology in a specific time zone.EthiopicChronology.withZone(DateTimeZone zone) Gets the Chronology in a specific time zone.GJChronology.withZone(DateTimeZone zone) Gets the Chronology in a specific time zone.GregorianChronology.withZone(DateTimeZone zone) Gets the Chronology in a specific time zone.IslamicChronology.withZone(DateTimeZone zone) Gets the Chronology in a specific time zone.ISOChronology.withZone(DateTimeZone zone) Gets the Chronology in a specific time zone.JulianChronology.withZone(DateTimeZone zone) Gets the Chronology in a specific time zone.LenientChronology.withZone(DateTimeZone zone) LimitChronology.withZone(DateTimeZone zone) If this LimitChronology has the same time zone as the one given, then this is returned.StrictChronology.withZone(DateTimeZone zone) ZonedChronology.withZone(DateTimeZone zone) -
Uses of DateTimeZone in org.joda.time.convert
Methods in org.joda.time.convert with parameters of type DateTimeZoneModifier and TypeMethodDescriptionAbstractConverter.getChronology(Object object, DateTimeZone zone) Extracts the chronology from an object of this converter's type where the time zone is specified.InstantConverter.getChronology(Object object, DateTimeZone zone) Extracts the chronology from an object of this converter's type where the time zone is specified.PartialConverter.getChronology(Object object, DateTimeZone zone) Extracts the chronology from an object of this converter's type where the time zone is specified. -
Uses of DateTimeZone in org.joda.time.format
Methods in org.joda.time.format that return DateTimeZoneModifier and TypeMethodDescriptionDateTimeFormatter.getZone()Gets the zone to use as an override.DateTimeParserBucket.getZone()Returns the time zone used by computeMillis.Methods in org.joda.time.format with parameters of type DateTimeZoneModifier and TypeMethodDescriptionvoidDateTimePrinter.printTo(Writer out, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, Locale locale) Prints an instant from milliseconds since 1970-01-01T00:00:00Z, using the given Chronology.voidDateTimePrinter.printTo(StringBuffer buf, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, Locale locale) Prints an instant from milliseconds since 1970-01-01T00:00:00Z, using the given Chronology.voidDateTimeParserBucket.setZone(DateTimeZone zone) Set a time zone to be used when computeMillis is called.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 DateTimeZoneModifier and TypeMethodDescriptionDateTimeFormatterBuilder.appendTimeZoneName(Map<String, DateTimeZone> parseLookup) Instructs the printer to emit a locale-specific time zone name, providing a lookup for parsing.DateTimeFormatterBuilder.appendTimeZoneShortName(Map<String, DateTimeZone> parseLookup) Instructs the printer to emit a short locale-specific time zone name, providing a lookup for parsing. -
Uses of DateTimeZone in org.joda.time.tz
Subclasses of DateTimeZone in org.joda.time.tzModifier and TypeClassDescriptionclassImproves the performance of requesting time zone offsets and name keys by caching the results.final classBasic DateTimeZone implementation that has a fixed name key and offsets.Methods in org.joda.time.tz that return DateTimeZoneModifier and TypeMethodDescriptionCachedDateTimeZone.getUncachedZone()Returns the DateTimeZone being wrapped.Retrieves a DateTimeZone for the given id.ReturnsUTCfor"UTC", null otherwise.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.static DateTimeZoneDecodes a built DateTimeZone from the given stream, as encoded by writeTo.static DateTimeZoneDateTimeZoneBuilder.readFrom(InputStream in, String id) Decodes a built DateTimeZone from the given stream, as encoded by writeTo.DateTimeZoneBuilder.toDateTimeZone(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 DateTimeZoneModifier and TypeMethodDescriptionReturns a map of ids to DateTimeZones.Methods in org.joda.time.tz with parameters of type DateTimeZoneModifier and TypeMethodDescriptionstatic CachedDateTimeZoneCachedDateTimeZone.forZone(DateTimeZone zone) Returns a new CachedDateTimeZone unless given zone is already cached.