接口的使用
java.time.chrono.ChronoZonedDateTime
使用 ChronoZonedDateTime 的包
-
ChronoZonedDateTime 在 java.time 中的用法
java.time 中实现 ChronoZonedDateTime 的类修饰符和类型类描述final classISO-8601 日历系统中带有时区的日期时间,例如2007-12-03T10:15:30+01:00 Europe/Paris。 -
ChronoZonedDateTime 在 java.time.chrono 中的用法
java.time.chrono 中返回 ChronoZonedDateTime 的方法修饰符和类型方法描述将这个时间与时区结合起来创建一个ChronoZonedDateTime。static ChronoZonedDateTime<?>ChronoZonedDateTime.from(TemporalAccessor temporal) 从时间对象中获取ChronoZonedDateTime的实例。default ChronoZonedDateTime<D>ChronoZonedDateTime.minus(long amountToSubtract, TemporalUnit unit) 返回与此对象相同类型并减去指定句点的对象。default ChronoZonedDateTime<D>ChronoZonedDateTime.minus(TemporalAmount amount) 返回与此对象相同类型的对象,但减去数量。ChronoZonedDateTime.plus(long amountToAdd, TemporalUnit unit) 返回与此对象相同类型的对象,并添加指定的时间段。default ChronoZonedDateTime<D>ChronoZonedDateTime.plus(TemporalAmount amount) 返回与此对象相同类型的对象,并添加了数量。default ChronoZonedDateTime<D>ChronoZonedDateTime.with(TemporalAdjuster adjuster) 返回与此对象具有相同类型并进行调整的调整对象。ChronoZonedDateTime.with(TemporalField field, long newValue) 返回与此对象相同类型的对象,但指定的字段已更改。ChronoZonedDateTime.withEarlierOffsetAtOverlap()返回此日期时间的副本,将区域偏移量更改为本地时间线重叠处两个有效偏移量中较早的一个。ChronoZonedDateTime.withLaterOffsetAtOverlap()返回此日期时间的副本,将区域偏移量更改为本地时间线重叠处两个有效偏移量中较晚的一个。ChronoZonedDateTime.withZoneSameInstant(ZoneId zone) 返回具有不同时区的此日期时间的副本,保留瞬间。ChronoZonedDateTime.withZoneSameLocal(ZoneId zone) 返回具有不同时区的此日期时间的副本,如果可能,保留本地日期时间。default ChronoZonedDateTime<? extends ChronoLocalDate>Chronology.zonedDateTime(Instant instant, ZoneId zone) 从Instant获得此年表中的ChronoZonedDateTime。default ChronoZonedDateTime<? extends ChronoLocalDate>Chronology.zonedDateTime(TemporalAccessor temporal) 从另一个时间对象获得此年表中的ChronoZonedDateTime。HijrahChronology.zonedDateTime(Instant instant, ZoneId zone) HijrahChronology.zonedDateTime(TemporalAccessor temporal) JapaneseChronology.zonedDateTime(Instant instant, ZoneId zone) JapaneseChronology.zonedDateTime(TemporalAccessor temporal) MinguoChronology.zonedDateTime(Instant instant, ZoneId zone) MinguoChronology.zonedDateTime(TemporalAccessor temporal) ThaiBuddhistChronology.zonedDateTime(Instant instant, ZoneId zone) ThaiBuddhistChronology.zonedDateTime(TemporalAccessor temporal) 返回类型中包含 ChronoZonedDateTime 类型参数的 java.time.chrono 中的方法修饰符和类型方法描述static Comparator<ChronoZonedDateTime<?>>ChronoZonedDateTime.timeLineOrder()获取一个比较器,该比较器按忽略年表的时间顺序比较ChronoZonedDateTime。java.time.chrono 中的方法,参数类型为 ChronoZonedDateTime修饰符和类型方法描述default intChronoZonedDateTime.compareTo(ChronoZonedDateTime<?> other) 将此日期时间与另一个日期时间进行比较,包括年表。default booleanChronoZonedDateTime.isAfter(ChronoZonedDateTime<?> other) 检查此日期时间的时刻是否在指定日期时间的时刻之后。default booleanChronoZonedDateTime.isBefore(ChronoZonedDateTime<?> other) 检查此日期时间的时刻是否早于指定日期时间的时刻。default booleanChronoZonedDateTime.isEqual(ChronoZonedDateTime<?> other) 检查此日期时间的时刻是否等于指定日期时间的时刻。