Uses of Class
java.time.ZoneId
-
Packages that use ZoneId 软件包 描述 java.time 日期,时间,瞬间和持续时间的主要API。java.time.chrono 除默认ISO之外的日历系统的通用API。java.time.format 提供打印和解析日期和时间的类。java.time.temporal 使用字段和单位访问日期和时间,以及日期时间调整器。java.util 包含集合框架,一些国际化支持类,一个服务加载器,属性,随机数生成,字符串解析和扫描类,base64编码和解码,一个位数组和几个其他实用程序类。 -
-
Uses of ZoneId in java.time
Subclasses of ZoneId in java.time Modifier and Type Class 描述 classZoneOffset与格林威治/ UTC的时区偏移量,如+02:00。Methods in java.time that return ZoneId Modifier and Type 方法 描述 static ZoneIdZoneId. from(TemporalAccessor temporal)从时间对象获取ZoneId的实例。abstract ZoneIdClock. getZone()获取用于创建日期和时间的时区。ZoneIdZonedDateTime. getZone()获得时区,如“欧洲/巴黎”。ZoneIdZoneId. normalized()规范时区ID,尽可能返回ZoneOffset。static ZoneIdZoneId. of(String zoneId)从ID获取一个ZoneId的实例,确保该ID有效并且可以使用。static ZoneIdZoneId. of(String zoneId, Map<String,String> aliasMap)使用其ID来获取ZoneId的实例,使用别名映射来补充标准区域ID。static ZoneIdZoneId. ofOffset(String prefix, ZoneOffset offset)获取包含一个偏移量的ZoneId的实例。static ZoneIdZoneId. systemDefault()获取系统默认时区。Methods in java.time with parameters of type ZoneId Modifier and Type 方法 描述 ZonedDateTimeLocalDate. atStartOfDay(ZoneId zone)根据时区中的规则,在最早的有效时间内从此日期返回划分的日期时间。ZonedDateTimeInstant. atZone(ZoneId zone)将此瞬间与时区相结合,创建一个ZonedDateTime。ZonedDateTimeLocalDateTime. atZone(ZoneId zone)将此日期时间与时区组合起来创建一个ZonedDateTime。ZonedDateTimeOffsetDateTime. atZoneSameInstant(ZoneId zone)将此日期时间与时区组合,创建一个ZonedDateTime确保结果具有相同的时刻。ZonedDateTimeOffsetDateTime. atZoneSimilarLocal(ZoneId zone)将此日期时间与时区组合,以创建一个ZonedDateTime试图保持相同的本地日期和时间。static ClockClock. fixed(Instant fixedInstant, ZoneId zone)获得始终返回相同时刻的时钟。static LocalDateLocalDate. now(ZoneId zone)从指定时区的系统时钟获取当前日期。static LocalDateTimeLocalDateTime. now(ZoneId zone)从指定时区的系统时钟获取当前的日期时间。static LocalTimeLocalTime. now(ZoneId zone)从指定时区的系统时钟获取当前时间。static MonthDayMonthDay. now(ZoneId zone)从指定时区的系统时钟获取当前的月日。static OffsetDateTimeOffsetDateTime. now(ZoneId zone)从指定时区的系统时钟获取当前的日期时间。static OffsetTimeOffsetTime. now(ZoneId zone)从指定时区的系统时钟获取当前时间。static YearYear. now(ZoneId zone)从指定时区的系统时钟获取当年。static YearMonthYearMonth. now(ZoneId zone)从指定时区的系统时钟获取当前的一个月。static ZonedDateTimeZonedDateTime. now(ZoneId zone)从指定时区的系统时钟获取当前的日期时间。static ZonedDateTimeZonedDateTime. of(int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, ZoneId zone)从年,月,日,时,分,秒,纳秒和时区获取ZonedDateTime的实例。static ZonedDateTimeZonedDateTime. of(LocalDate date, LocalTime time, ZoneId zone)从当地的日期和时间获取ZonedDateTime的实例。static ZonedDateTimeZonedDateTime. of(LocalDateTime localDateTime, ZoneId zone)从本地日期时间获取ZonedDateTime的实例。static LocalDateLocalDate. ofInstant(Instant instant, ZoneId zone)从Instant和区域ID获取LocalDate的实例。static LocalDateTimeLocalDateTime. ofInstant(Instant instant, ZoneId zone)从Instant和区域ID获取LocalDateTime的实例。static LocalTimeLocalTime. ofInstant(Instant instant, ZoneId zone)从Instant和区域ID获取LocalTime的实例。static OffsetDateTimeOffsetDateTime. ofInstant(Instant instant, ZoneId zone)从Instant和区域ID获取OffsetDateTime的实例。static OffsetTimeOffsetTime. ofInstant(Instant instant, ZoneId zone)从Instant和区域ID获取OffsetTime的实例。static ZonedDateTimeZonedDateTime. ofInstant(Instant instant, ZoneId zone)从Instant获取ZonedDateTime的实例。static ZonedDateTimeZonedDateTime. ofInstant(LocalDateTime localDateTime, ZoneOffset offset, ZoneId zone)从通过组合本地日期时间和偏移量形成的瞬间获取ZonedDateTime的实例。static ZonedDateTimeZonedDateTime. ofLocal(LocalDateTime localDateTime, ZoneId zone, ZoneOffset preferredOffset)从本地日期时间获取ZonedDateTime的实例,如果可能,使用首选偏移量。static ZonedDateTimeZonedDateTime. ofStrict(LocalDateTime localDateTime, ZoneOffset offset, ZoneId zone)获取ZonedDateTime的实例,严格验证本地日期时间,偏移量和区域ID的组合。static ClockClock. system(ZoneId zone)获取使用最佳可用系统时钟返回当前即时的时钟。static ClockClock. tickMillis(ZoneId zone)获取时钟,使用最佳可用系统时钟返回当前瞬间滴答整数毫秒。static ClockClock. tickMinutes(ZoneId zone)获取时钟,使用最佳可用系统时钟在一分钟内返回当前瞬间滴答。static ClockClock. tickSeconds(ZoneId zone)获取时钟,使用最佳可用系统时钟在一秒钟内返回当前瞬间滴答作响。abstract ClockClock. withZone(ZoneId zone)以不同的时区返回此时钟的副本。ZonedDateTimeZonedDateTime. withZoneSameInstant(ZoneId zone)使用不同的时区返回此日期时间的副本,保留即时。ZonedDateTimeZonedDateTime. withZoneSameLocal(ZoneId zone)使用不同的时区返回此日期时间的副本,如果可能,保留本地日期时间。 -
Uses of ZoneId in java.time.chrono
Methods in java.time.chrono that return ZoneId Modifier and Type 方法 描述 ZoneIdChronoZonedDateTime. getZone()获取区域ID,例如“欧洲/巴黎”。Methods in java.time.chrono with parameters of type ZoneId Modifier and Type 方法 描述 ChronoZonedDateTime<D>ChronoLocalDateTime. atZone(ZoneId zone)将此时间与时区相结合,创建一个ChronoZonedDateTime。default ChronoLocalDateChronology. dateNow(ZoneId zone)从指定时区的系统时钟获取此时间顺序中的当前本地日期。HijrahDateHijrahChronology. dateNow(ZoneId zone)LocalDateIsoChronology. dateNow(ZoneId zone)从指定时区的系统时钟获取当前的ISO本地日期。JapaneseDateJapaneseChronology. dateNow(ZoneId zone)MinguoDateMinguoChronology. dateNow(ZoneId zone)ThaiBuddhistDateThaiBuddhistChronology. dateNow(ZoneId zone)static HijrahDateHijrahDate. now(ZoneId zone)在指定的时区获得伊斯兰教Umm Al-Qura日历的当前HijrahDate。static JapaneseDateJapaneseDate. now(ZoneId zone)从指定时区的系统时钟获取当前的JapaneseDate。static MinguoDateMinguoDate. now(ZoneId zone)从指定时区的系统时钟获取当前的MinguoDate。static ThaiBuddhistDateThaiBuddhistDate. now(ZoneId zone)从指定时区的系统时钟获取当前的ThaiBuddhistDate。ChronoZonedDateTime<D>ChronoZonedDateTime. withZoneSameInstant(ZoneId zone)使用不同的时区返回此日期时间的副本,保留即时。ChronoZonedDateTime<D>ChronoZonedDateTime. withZoneSameLocal(ZoneId zone)使用不同的时区返回此日期时间的副本,如果可能,保留本地日期时间。default ChronoZonedDateTime<? extends ChronoLocalDate>Chronology. zonedDateTime(Instant instant, ZoneId zone)获得ChronoZonedDateTime在从这个年表Instant。ChronoZonedDateTime<HijrahDate>HijrahChronology. zonedDateTime(Instant instant, ZoneId zone)ZonedDateTimeIsoChronology. zonedDateTime(Instant instant, ZoneId zone)从这个年龄从Instant获得ISOInstant日期时间。ChronoZonedDateTime<JapaneseDate>JapaneseChronology. zonedDateTime(Instant instant, ZoneId zone)ChronoZonedDateTime<MinguoDate>MinguoChronology. zonedDateTime(Instant instant, ZoneId zone)ChronoZonedDateTime<ThaiBuddhistDate>ThaiBuddhistChronology. zonedDateTime(Instant instant, ZoneId zone) -
Uses of ZoneId in java.time.format
Methods in java.time.format that return ZoneId Modifier and Type 方法 描述 ZoneIdDateTimeFormatter. getZone()获取在格式化期间使用的覆盖区域。Methods in java.time.format with parameters of type ZoneId Modifier and Type 方法 描述 DateTimeFormatterDateTimeFormatter. withZone(ZoneId zone)使用新的覆盖区域返回此格式化程序的副本。Method parameters in java.time.format with type arguments of type ZoneId Modifier and Type 方法 描述 DateTimeFormatterBuilderDateTimeFormatterBuilder. appendGenericZoneText(TextStyle textStyle, Set<ZoneId> preferredZones)将泛型时区名称(如“太平洋时间”)附加到格式化程序。DateTimeFormatterBuilderDateTimeFormatterBuilder. appendZoneText(TextStyle textStyle, Set<ZoneId> preferredZones)将时区名称(如“英国夏令时”)附加到格式化程序。 -
Uses of ZoneId in java.time.temporal
Methods in java.time.temporal that return types with arguments of type ZoneId Modifier and Type 方法 描述 static TemporalQuery<ZoneId>TemporalQueries. zone()一个宽松的查询为ZoneId,回落到ZoneOffset。static TemporalQuery<ZoneId>TemporalQueries. zoneId()严格查询ZoneId。 -
Uses of ZoneId in java.util
Methods in java.util that return ZoneId Modifier and Type 方法 描述 ZoneIdTimeZone. toZoneId()将此TimeZone对象转换为ZoneId。Methods in java.util with parameters of type ZoneId Modifier and Type 方法 描述 static TimeZoneTimeZone. getTimeZone(ZoneId zoneId)获取TimeZone为给定zoneId。
-