Uses of Class
org.threeten.bp.ZoneId
-
Packages that use ZoneId Package Description org.threeten.bp The main API for dates, times, instants, and durations.org.threeten.bp.chrono Support for calendar systems other than the default ISO.org.threeten.bp.format Provides classes to print and parse dates and times.org.threeten.bp.temporal Access to date and time using fields and units. -
-
Uses of ZoneId in org.threeten.bp
Subclasses of ZoneId in org.threeten.bp Modifier and Type Class Description classZoneOffsetA time-zone offset from Greenwich/UTC, such as+02:00.(package private) classZoneRegionA geographical region where the same time-zone rules apply.Fields in org.threeten.bp declared as ZoneId Modifier and Type Field Description private ZoneIdClock.FixedClock. zoneprivate ZoneIdClock.SystemClock. zoneprivate ZoneIdZonedDateTime. zoneThe time-zone.Fields in org.threeten.bp with type parameters of type ZoneId Modifier and Type Field Description static TemporalQuery<ZoneId>ZoneId. FROMSimulate JDK 8 method reference ZoneId::from.Methods in org.threeten.bp that return ZoneId Modifier and Type Method Description static ZoneIdZoneId. from(TemporalAccessor temporal)Obtains an instance ofZoneIdfrom a temporal object.ZoneIdClock.FixedClock. getZone()abstract ZoneIdClock. getZone()Gets the time-zone being used to create dates and times.ZoneIdClock.OffsetClock. getZone()ZoneIdClock.SystemClock. getZone()ZoneIdClock.TickClock. getZone()ZoneIdZonedDateTime. getZone()Gets the time-zone, such as 'Europe/Paris'.ZoneIdZoneId. normalized()Normalizes the time-zone ID, returning aZoneOffsetwhere possible.static ZoneIdZoneId. of(java.lang.String zoneId)Obtains an instance ofZoneIdfrom an ID ensuring that the ID is valid and available for use.static ZoneIdZoneId. of(java.lang.String zoneId, java.util.Map<java.lang.String,java.lang.String> aliasMap)Obtains an instance ofZoneIdusing its ID using a map of aliases to supplement the standard zone IDs.static ZoneIdZoneId. ofOffset(java.lang.String prefix, ZoneOffset offset)Obtains an instance ofZoneIdwrapping an offset.(package private) static ZoneIdZoneRegion. readExternal(java.io.DataInput in)static ZoneIdZoneId. systemDefault()Gets the system default time-zone.static ZoneIdDateTimeUtils. toZoneId(java.util.TimeZone timeZone)Converts aTimeZoneto aZoneId.Methods in org.threeten.bp with parameters of type ZoneId Modifier and Type Method Description ZonedDateTimeLocalDate. atStartOfDay(ZoneId zone)Combines this date with a time-zone to create aZonedDateTimeat the start of the dayZonedDateTimeInstant. atZone(ZoneId zone)Combines this instant with a time-zone to create aZonedDateTime.ZonedDateTimeLocalDateTime. atZone(ZoneId zone)Combines this date-time with a time-zone to create aZonedDateTime.ZonedDateTimeOffsetDateTime. atZoneSameInstant(ZoneId zone)Combines this date-time with a time-zone to create aZonedDateTimeensuring that the result has the same instant.ZonedDateTimeOffsetDateTime. atZoneSimilarLocal(ZoneId zone)Combines this date-time with a time-zone to create aZonedDateTimetrying to keep the same local date and time.private static ZonedDateTimeZonedDateTime. create(long epochSecond, int nanoOfSecond, ZoneId zone)Obtains an instance ofZonedDateTimeusing seconds from the epoch of 1970-01-01T00:00:00Z.static ClockClock. fixed(Instant fixedInstant, ZoneId zone)Obtains a clock that always returns the same instant.static LocalDateLocalDate. now(ZoneId zone)Obtains the current date from the system clock in the specified time-zone.static LocalDateTimeLocalDateTime. now(ZoneId zone)Obtains the current date-time from the system clock in the specified time-zone.static LocalTimeLocalTime. now(ZoneId zone)Obtains the current time from the system clock in the specified time-zone.static MonthDayMonthDay. now(ZoneId zone)Obtains the current month-day from the system clock in the specified time-zone.static OffsetDateTimeOffsetDateTime. now(ZoneId zone)Obtains the current date-time from the system clock in the specified time-zone.static OffsetTimeOffsetTime. now(ZoneId zone)Obtains the current time from the system clock in the specified time-zone.static YearYear. now(ZoneId zone)Obtains the current year from the system clock in the specified time-zone.static YearMonthYearMonth. now(ZoneId zone)Obtains the current year-month from the system clock in the specified time-zone.static ZonedDateTimeZonedDateTime. now(ZoneId zone)Obtains 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 ZonedDateTimeZonedDateTime. of(LocalDate date, LocalTime time, ZoneId zone)Obtains an instance ofZonedDateTimefrom a local date and time.static ZonedDateTimeZonedDateTime. of(LocalDateTime localDateTime, ZoneId zone)Obtains an instance ofZonedDateTimefrom a local date-time.static LocalDateTimeLocalDateTime. ofInstant(Instant instant, ZoneId zone)Obtains an instance ofLocalDateTimefrom anInstantand zone ID.static OffsetDateTimeOffsetDateTime. ofInstant(Instant instant, ZoneId zone)Obtains an instance ofOffsetDateTimefrom anInstantand zone ID.static OffsetTimeOffsetTime. ofInstant(Instant instant, ZoneId zone)Obtains an instance ofOffsetTimefrom anInstantand zone ID.static ZonedDateTimeZonedDateTime. ofInstant(Instant instant, ZoneId zone)Obtains 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 ClockClock. system(ZoneId zone)Obtains 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 java.util.TimeZoneDateTimeUtils. toTimeZone(ZoneId zoneId)Converts aZoneIdto aTimeZone.ClockClock.FixedClock. withZone(ZoneId zone)ClockClock.OffsetClock. withZone(ZoneId zone)ClockClock.SystemClock. withZone(ZoneId zone)ClockClock.TickClock. withZone(ZoneId zone)abstract ClockClock. withZone(ZoneId zone)Returns a copy of this clock with a different time-zone.ZonedDateTimeZonedDateTime. withZoneSameInstant(ZoneId zone)Returns a copy of this date-time with a different time-zone, retaining the instant.ZonedDateTimeZonedDateTime. 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 ZoneId Constructor Description FixedClock(Instant fixedInstant, ZoneId zone)SystemClock(ZoneId zone)ZonedDateTime(LocalDateTime dateTime, ZoneOffset offset, ZoneId zone)Constructor. -
Uses of ZoneId in org.threeten.bp.chrono
Fields in org.threeten.bp.chrono declared as ZoneId Modifier and Type Field Description private ZoneIdChronoZonedDateTimeImpl. zoneThe zone ID.Methods in org.threeten.bp.chrono that return ZoneId Modifier and Type Method Description abstract ZoneIdChronoZonedDateTime. getZone()Gets the zone ID, such as 'Europe/Paris'.ZoneIdChronoZonedDateTimeImpl. getZone()Methods in org.threeten.bp.chrono with parameters of type ZoneId Modifier and Type Method Description abstract ChronoZonedDateTime<D>ChronoLocalDateTime. atZone(ZoneId zone)Combines this time with a time-zone to create aChronoZonedDateTime.ChronoZonedDateTime<D>ChronoLocalDateTimeImpl. atZone(ZoneId zoneId)private ChronoZonedDateTimeImpl<D>ChronoZonedDateTimeImpl. create(Instant instant, ZoneId zone)Obtains an instance from anInstant.ChronoLocalDateChronology. dateNow(ZoneId zone)Obtains the current local date in this chronology from the system clock in the specified time-zone.HijrahDateHijrahChronology. dateNow(ZoneId zone)LocalDateIsoChronology. dateNow(ZoneId zone)Obtains the current ISO local date from the system clock in the specified time-zone.JapaneseDateJapaneseChronology. dateNow(ZoneId zone)MinguoDateMinguoChronology. dateNow(ZoneId zone)ThaiBuddhistDateThaiBuddhistChronology. dateNow(ZoneId zone)static HijrahDateHijrahDate. now(ZoneId zone)Obtains the currentHijrahDateof the Islamic Umm Al-Qura calendar in the specified time-zone.static JapaneseDateJapaneseDate. now(ZoneId zone)Obtains the currentJapaneseDatefrom the system clock in the specified time-zone.static MinguoDateMinguoDate. now(ZoneId zone)Obtains the currentMinguoDatefrom the system clock in the specified time-zone.static ThaiBuddhistDateThaiBuddhistDate. now(ZoneId zone)Obtains 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.ChronoZonedDateTime<D>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.ChronoZonedDateTime<D>ChronoZonedDateTimeImpl. withZoneSameLocal(ZoneId zone)ChronoZonedDateTime<?>Chronology. zonedDateTime(Instant instant, ZoneId zone)Obtains a zoned date-time in this chronology from anInstant.ChronoZonedDateTime<HijrahDate>HijrahChronology. zonedDateTime(Instant instant, ZoneId zone)ZonedDateTimeIsoChronology. zonedDateTime(Instant instant, ZoneId zone)Obtains an ISO zoned date-time from an instant.ChronoZonedDateTime<JapaneseDate>JapaneseChronology. zonedDateTime(Instant instant, ZoneId zone)ChronoZonedDateTime<MinguoDate>MinguoChronology. zonedDateTime(Instant instant, ZoneId zone)ChronoZonedDateTime<ThaiBuddhistDate>ThaiBuddhistChronology. zonedDateTime(Instant instant, ZoneId zone)Constructors in org.threeten.bp.chrono with parameters of type ZoneId Constructor Description ChronoZonedDateTimeImpl(ChronoLocalDateTimeImpl<D> dateTime, ZoneOffset offset, ZoneId zone)Constructor. -
Uses of ZoneId in org.threeten.bp.format
Fields in org.threeten.bp.format declared as ZoneId Modifier and Type Field Description private ZoneIdDateTimeParseContext. overrideZoneThe override zone.(package private) ZoneIdDateTimeBuilder. zoneThe zone.private 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 ZoneId Modifier and Type Field Description private TemporalQuery<ZoneId>DateTimeFormatterBuilder.ZoneIdPrinterParser. queryprivate static TemporalQuery<ZoneId>DateTimeFormatterBuilder. QUERY_REGION_ONLYQuery for a time-zone that is region-only.Methods in org.threeten.bp.format that return ZoneId Modifier and Type Method Description private ZoneIdDateTimeFormatterBuilder.ZoneIdPrinterParser. convertToZone(java.util.Set<java.lang.String> regionIds, java.lang.String parsedZoneId, boolean caseSensitive)ZoneIdDateTimeFormatter. getZone()Gets the overriding zone to be used during formatting.Methods in org.threeten.bp.format with parameters of type ZoneId Modifier and Type Method Description private voidDateTimeBuilder. mergeInstantFields0(ZoneId selectedZone)(package private) voidDateTimeParseContext. setParsed(ZoneId zone)Stores the parsed zone.DateTimeFormatterDateTimeFormatter. withZone(ZoneId zone)Returns a copy of this formatter with a new override zone.Method parameters in org.threeten.bp.format with type arguments of type ZoneId Modifier and Type Method Description DateTimeFormatterBuilderDateTimeFormatterBuilder. appendZoneText(TextStyle textStyle, java.util.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 ZoneId Constructor Description DateTimeFormatter(DateTimeFormatterBuilder.CompositePrinterParser printerParser, java.util.Locale locale, DecimalStyle decimalStyle, ResolverStyle resolverStyle, java.util.Set<TemporalField> resolverFields, Chronology chrono, ZoneId zone)Constructor.Constructor parameters in org.threeten.bp.format with type arguments of type ZoneId Constructor Description ZoneIdPrinterParser(TemporalQuery<ZoneId> query, java.lang.String description) -
Uses of ZoneId in org.threeten.bp.temporal
Fields in org.threeten.bp.temporal with type parameters of type ZoneId Modifier and Type Field Description (package private) static TemporalQuery<ZoneId>TemporalQueries. ZONE(package private) static TemporalQuery<ZoneId>TemporalQueries. ZONE_IDMethods in org.threeten.bp.temporal that return types with arguments of type ZoneId Modifier and Type Method Description static TemporalQuery<ZoneId>TemporalQueries. zone()A lenient query for theZoneId, falling back to theZoneOffset.static TemporalQuery<ZoneId>TemporalQueries. zoneId()A strict query for theZoneId.
-