Uses of Class
org.threeten.bp.ZoneId
Packages that use ZoneId
Package
Description
The main API for dates, times, instants, and durations.
Support for calendar systems other than the default ISO.
Provides classes to print and parse dates and times.
Access to date and time using fields and units.
-
Uses of ZoneId in org.threeten.bp
Subclasses of ZoneId in org.threeten.bpModifier and TypeClassDescriptionfinal classA time-zone offset from Greenwich/UTC, such as+02:00.(package private) final classA geographical region where the same time-zone rules apply.Fields in org.threeten.bp declared as ZoneIdModifier and TypeFieldDescriptionprivate final ZoneIdClock.FixedClock.zoneprivate final ZoneIdClock.SystemClock.zoneprivate final ZoneIdZonedDateTime.zoneThe time-zone.Fields in org.threeten.bp with type parameters of type ZoneIdModifier and TypeFieldDescriptionstatic final TemporalQuery<ZoneId>ZoneId.FROMSimulate JDK 8 method reference ZoneId::from.Methods in org.threeten.bp that return ZoneIdModifier and TypeMethodDescriptionstatic ZoneIdZoneId.from(TemporalAccessor temporal) Obtains an instance ofZoneIdfrom a temporal object.Clock.FixedClock.getZone()abstract ZoneIdClock.getZone()Gets the time-zone being used to create dates and times.Clock.OffsetClock.getZone()Clock.SystemClock.getZone()Clock.TickClock.getZone()ZonedDateTime.getZone()Gets the time-zone, such as 'Europe/Paris'.ZoneId.normalized()Normalizes the time-zone ID, returning aZoneOffsetwhere possible.static ZoneIdObtains an instance ofZoneIdfrom an ID ensuring that the ID is valid and available for use.static ZoneIdObtains an instance ofZoneIdusing its ID using a map of aliases to supplement the standard zone IDs.static ZoneIdZoneId.ofOffset(String prefix, ZoneOffset offset) Obtains an instance ofZoneIdwrapping an offset.(package private) static ZoneIdZoneRegion.readExternal(DataInput in) static ZoneIdZoneId.systemDefault()Gets the system default time-zone.static ZoneIdConverts aTimeZoneto aZoneId.Methods in org.threeten.bp with parameters of type ZoneIdModifier and TypeMethodDescriptionLocalDate.atStartOfDay(ZoneId zone) Combines this date with a time-zone to create aZonedDateTimeat the start of the dayCombines this instant with a time-zone to create aZonedDateTime.Combines this date-time with a time-zone to create aZonedDateTime.OffsetDateTime.atZoneSameInstant(ZoneId zone) Combines this date-time with a time-zone to create aZonedDateTimeensuring that the result has the same instant.OffsetDateTime.atZoneSimilarLocal(ZoneId zone) Combines this date-time with a time-zone to create aZonedDateTimetrying to keep the same local date and time.private static ZonedDateTimeObtains an instance ofZonedDateTimeusing seconds from the epoch of 1970-01-01T00:00:00Z.static ClockObtains a clock that always returns the same instant.static LocalDateObtains the current date from the system clock in the specified time-zone.static LocalDateTimeObtains the current date-time from the system clock in the specified time-zone.static LocalTimeObtains the current time from the system clock in the specified time-zone.static MonthDayObtains the current month-day from the system clock in the specified time-zone.static OffsetDateTimeObtains the current date-time from the system clock in the specified time-zone.static OffsetTimeObtains the current time from the system clock in the specified time-zone.static YearObtains the current year from the system clock in the specified time-zone.static YearMonthObtains the current year-month from the system clock in the specified time-zone.static ZonedDateTimeObtains the current date-time from the system clock in the specified time-zone.static ZonedDateTimeZonedDateTime.of(int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, ZoneId zone) Obtains an instance ofZonedDateTimefrom a year, month, day, hour, minute, second, nanosecond and time-zone.static ZonedDateTimeObtains an instance ofZonedDateTimefrom a local date and time.static ZonedDateTimeZonedDateTime.of(LocalDateTime localDateTime, ZoneId zone) Obtains an instance ofZonedDateTimefrom a local date-time.static LocalDateTimeObtains an instance ofLocalDateTimefrom anInstantand zone ID.static OffsetDateTimeObtains an instance ofOffsetDateTimefrom anInstantand zone ID.static OffsetTimeObtains an instance ofOffsetTimefrom anInstantand zone ID.static ZonedDateTimeObtains an instance ofZonedDateTimefrom anInstant.static ZonedDateTimeZonedDateTime.ofInstant(LocalDateTime localDateTime, ZoneOffset offset, ZoneId zone) Obtains an instance ofZonedDateTimefrom the instant formed by combining the local date-time and offset.private static ZonedDateTimeZonedDateTime.ofLenient(LocalDateTime localDateTime, ZoneOffset offset, ZoneId zone) Obtains an instance ofZonedDateTimeleniently, for advanced use cases, allowing any combination of local date-time, offset and zone ID.static ZonedDateTimeZonedDateTime.ofLocal(LocalDateTime localDateTime, ZoneId zone, ZoneOffset preferredOffset) Obtains an instance ofZonedDateTimefrom a local date-time using the preferred offset if possible.static ZonedDateTimeZonedDateTime.ofStrict(LocalDateTime localDateTime, ZoneOffset offset, ZoneId zone) Obtains an instance ofZonedDateTimestrictly validating the combination of local date-time, offset and zone ID.static ClockObtains a clock that returns the current instant using best available system clock.static ClockClock.tickMinutes(ZoneId zone) Obtains a clock that returns the current instant ticking in whole minutes using best available system clock.static ClockClock.tickSeconds(ZoneId zone) Obtains a clock that returns the current instant ticking in whole seconds using best available system clock.static TimeZoneDateTimeUtils.toTimeZone(ZoneId zoneId) Converts aZoneIdto aTimeZone.abstract ClockReturns a copy of this clock with a different time-zone.ZonedDateTime.withZoneSameInstant(ZoneId zone) Returns a copy of this date-time with a different time-zone, retaining the instant.ZonedDateTime.withZoneSameLocal(ZoneId zone) Returns a copy of this date-time with a different time-zone, retaining the local date-time if possible.Constructors in org.threeten.bp with parameters of type ZoneIdModifierConstructorDescription(package private)FixedClock(Instant fixedInstant, ZoneId zone) (package private)SystemClock(ZoneId zone) privateZonedDateTime(LocalDateTime dateTime, ZoneOffset offset, ZoneId zone) Constructor. -
Uses of ZoneId in org.threeten.bp.chrono
Fields in org.threeten.bp.chrono declared as ZoneIdMethods in org.threeten.bp.chrono that return ZoneIdModifier and TypeMethodDescriptionabstract ZoneIdChronoZonedDateTime.getZone()Gets the zone ID, such as 'Europe/Paris'.ChronoZonedDateTimeImpl.getZone()Methods in org.threeten.bp.chrono with parameters of type ZoneIdModifier and TypeMethodDescriptionabstract ChronoZonedDateTime<D>Combines this time with a time-zone to create aChronoZonedDateTime.private ChronoZonedDateTimeImpl<D>Obtains an instance from anInstant.Obtains the current local date in this chronology from the system clock in the specified time-zone.Obtains the current ISO local date from the system clock in the specified time-zone.static HijrahDateObtains the currentHijrahDateof the Islamic Umm Al-Qura calendar in the specified time-zone.static JapaneseDateObtains the currentJapaneseDatefrom the system clock in the specified time-zone.static MinguoDateObtains the currentMinguoDatefrom the system clock in the specified time-zone.static ThaiBuddhistDateObtains the currentThaiBuddhistDatefrom the system clock in the specified time-zone.(package private) static <R extends ChronoLocalDate>
ChronoZonedDateTime<R>ChronoZonedDateTimeImpl.ofBest(ChronoLocalDateTimeImpl<R> localDateTime, ZoneId zone, ZoneOffset preferredOffset) Obtains an instance from a local date-time using the preferred offset if possible.(package private) static <R extends ChronoLocalDate>
ChronoZonedDateTimeImpl<R>ChronoZonedDateTimeImpl.ofInstant(Chronology chrono, Instant instant, ZoneId zone) Obtains an instance from an instant using the specified time-zone.abstract ChronoZonedDateTime<D>ChronoZonedDateTime.withZoneSameInstant(ZoneId zoneId) Returns a copy of this date-time with a different time-zone, retaining the instant.ChronoZonedDateTimeImpl.withZoneSameInstant(ZoneId zone) abstract ChronoZonedDateTime<D>ChronoZonedDateTime.withZoneSameLocal(ZoneId zoneId) Returns a copy of this ZonedDateTime with a different time-zone, retaining the local date-time if possible.ChronoZonedDateTimeImpl.withZoneSameLocal(ZoneId zone) Chronology.zonedDateTime(Instant instant, ZoneId zone) Obtains a zoned date-time in this chronology from anInstant.HijrahChronology.zonedDateTime(Instant instant, ZoneId zone) IsoChronology.zonedDateTime(Instant instant, ZoneId zone) Obtains an ISO zoned date-time from an instant.JapaneseChronology.zonedDateTime(Instant instant, ZoneId zone) MinguoChronology.zonedDateTime(Instant instant, ZoneId zone) ThaiBuddhistChronology.zonedDateTime(Instant instant, ZoneId zone) Constructors in org.threeten.bp.chrono with parameters of type ZoneIdModifierConstructorDescriptionprivateChronoZonedDateTimeImpl(ChronoLocalDateTimeImpl<D> dateTime, ZoneOffset offset, ZoneId zone) Constructor. -
Uses of ZoneId in org.threeten.bp.format
Fields in org.threeten.bp.format declared as ZoneIdModifier and TypeFieldDescriptionprivate ZoneIdDateTimeParseContext.overrideZoneThe override zone.(package private) ZoneIdDateTimeBuilder.zoneThe zone.private final ZoneIdDateTimeFormatter.zoneThe zone to use for formatting, null for no override.(package private) ZoneIdDateTimeParseContext.Parsed.zoneFields in org.threeten.bp.format with type parameters of type ZoneIdModifier and TypeFieldDescriptionprivate final TemporalQuery<ZoneId>DateTimeFormatterBuilder.ZoneIdPrinterParser.queryprivate static final TemporalQuery<ZoneId>DateTimeFormatterBuilder.QUERY_REGION_ONLYQuery for a time-zone that is region-only.Methods in org.threeten.bp.format that return ZoneIdModifier and TypeMethodDescriptionprivate ZoneIdDateTimeFormatterBuilder.ZoneIdPrinterParser.convertToZone(Set<String> regionIds, String parsedZoneId, boolean caseSensitive) DateTimeFormatter.getZone()Gets the overriding zone to be used during formatting.Methods in org.threeten.bp.format with parameters of type ZoneIdModifier and TypeMethodDescriptionprivate voidDateTimeBuilder.mergeInstantFields0(ZoneId selectedZone) (package private) voidStores the parsed zone.Returns a copy of this formatter with a new override zone.Method parameters in org.threeten.bp.format with type arguments of type ZoneIdModifier and TypeMethodDescriptionDateTimeFormatterBuilder.appendZoneText(TextStyle textStyle, Set<ZoneId> preferredZones) Appends the time-zone name, such as 'British Summer Time', to the formatter.Constructors in org.threeten.bp.format with parameters of type ZoneIdModifierConstructorDescription(package private)DateTimeFormatter(DateTimeFormatterBuilder.CompositePrinterParser printerParser, Locale locale, DecimalStyle decimalStyle, ResolverStyle resolverStyle, Set<TemporalField> resolverFields, Chronology chrono, ZoneId zone) Constructor.Constructor parameters in org.threeten.bp.format with type arguments of type ZoneIdModifierConstructorDescription(package private)ZoneIdPrinterParser(TemporalQuery<ZoneId> query, String description) -
Uses of ZoneId in org.threeten.bp.temporal
Fields in org.threeten.bp.temporal with type parameters of type ZoneIdModifier and TypeFieldDescription(package private) static final TemporalQuery<ZoneId>TemporalQueries.ZONE(package private) static final TemporalQuery<ZoneId>TemporalQueries.ZONE_IDMethods in org.threeten.bp.temporal that return types with arguments of type ZoneIdModifier and TypeMethodDescriptionstatic final TemporalQuery<ZoneId>TemporalQueries.zone()A lenient query for theZoneId, falling back to theZoneOffset.static final TemporalQuery<ZoneId>TemporalQueries.zoneId()A strict query for theZoneId.