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 变量和类型 类 描述 classZoneOffset与格林威治/ UTC的时区偏移,例如+02:00。Methods in java.time that return ZoneId 变量和类型 方法 描述 static ZoneIdZoneId. from(TemporalAccessor temporal)从时态对象获得ZoneId的实例。abstract ZoneIdClock. getZone()获取用于创建日期和时间的时区。ZoneIdZonedDateTime. getZone()获取时区,例如“Europe / Paris”。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 变量和类型 方法 描述 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 变量和类型 方法 描述 ZoneIdChronoZonedDateTime. getZone()获取区域ID,例如“Europe / Paris”。Methods in java.time.chrono with parameters of type ZoneId 变量和类型 方法 描述 ChronoZonedDateTime<D>ChronoLocalDateTime. atZone(ZoneId zone)将此时间与时区相结合以创建ChronoZonedDateTime。default ChronoLocalDateChronology. dateNow(ZoneId zone)从指定时区的系统时钟获取此年表中的当前本地日期。LocalDateIsoChronology. dateNow(ZoneId zone)从指定时区的系统时钟获取当前ISO本地日期。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。ZonedDateTimeIsoChronology. zonedDateTime(Instant instant, ZoneId zone)从Instant获得此年表中的ISO分区日期时间。 -
Uses of ZoneId in java.time.format
Methods in java.time.format that return ZoneId 变量和类型 方法 描述 ZoneIdDateTimeFormatter. getZone()获取格式化期间要使用的覆盖区域。Methods in java.time.format with parameters of type ZoneId 变量和类型 方法 描述 DateTimeFormatterDateTimeFormatter. withZone(ZoneId zone)使用新的覆盖区域返回此格式化程序的副本。Method parameters in java.time.format with type arguments of type ZoneId 变量和类型 方法 描述 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 变量和类型 方法 描述 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 变量和类型 方法 描述 ZoneIdTimeZone. toZoneId()将此TimeZone对象转换为ZoneId。Methods in java.util with parameters of type ZoneId 变量和类型 方法 描述 static TimeZoneTimeZone. getTimeZone(ZoneId zoneId)获取TimeZone对于给定的zoneId。
-