软件包 | 描述 |
---|---|
java.time |
日期、时间、时刻主要的API,和持续时间。
|
java.time.chrono |
除了默认的标准以外的日历系统的通用的。
|
Modifier and Type | Class and Description |
---|---|
class |
ZonedDateTime
一个在ISO-8601日历系统时区的日期时间,如
2007-12-03T10:15:30+01:00 Europe/Paris 。
|
Modifier and Type | Method and Description |
---|---|
ChronoZonedDateTime<D> |
ChronoLocalDateTime.atZone(ZoneId zone)
结合这一次的时间区创建
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<D> |
ChronoZonedDateTime.plus(long amountToAdd, TemporalUnit unit)
返回与此对象相同的类型的对象,添加指定的周期。
|
default ChronoZonedDateTime<D> |
ChronoZonedDateTime.plus(TemporalAmount amount)
返回与此对象添加的相同类型的对象。
|
default ChronoZonedDateTime<D> |
ChronoZonedDateTime.with(TemporalAdjuster adjuster)
返回与此对象调整的相同类型的调整对象。
|
ChronoZonedDateTime<D> |
ChronoZonedDateTime.with(TemporalField field, long newValue)
返回与指定字段更改的相同类型的对象。
|
ChronoZonedDateTime<D> |
ChronoZonedDateTime.withEarlierOffsetAtOverlap()
返回此日期时间更改区域的副本,以在本地时间线重叠时对两个有效偏移量的较早的偏移量偏移。
|
ChronoZonedDateTime<D> |
ChronoZonedDateTime.withLaterOffsetAtOverlap()
返回此日期时间更改区域的副本,以在本地时间线重叠中的两个有效偏移量的后面偏移。
|
ChronoZonedDateTime<D> |
ChronoZonedDateTime.withZoneSameInstant(ZoneId zone)
返回此日期时间的副本,以不同的时区,保留即时。
|
ChronoZonedDateTime<D> |
ChronoZonedDateTime.withZoneSameLocal(ZoneId zone)
返回一份本ZonedDateTime与一个不同的时区,保留当地的日期时间如果可能的话。
|
default ChronoZonedDateTime<? extends ChronoLocalDate> |
Chronology.zonedDateTime(Instant instant, ZoneId zone)
从一个
Instant 这一
ChronoZonedDateTime 年表。
|
ChronoZonedDateTime<ThaiBuddhistDate> |
ThaiBuddhistChronology.zonedDateTime(Instant instant, ZoneId zone) |
ChronoZonedDateTime<JapaneseDate> |
JapaneseChronology.zonedDateTime(Instant instant, ZoneId zone) |
ChronoZonedDateTime<MinguoDate> |
MinguoChronology.zonedDateTime(Instant instant, ZoneId zone) |
ChronoZonedDateTime<HijrahDate> |
HijrahChronology.zonedDateTime(Instant instant, ZoneId zone) |
default ChronoZonedDateTime<? extends ChronoLocalDate> |
Chronology.zonedDateTime(TemporalAccessor temporal)
得到此年表
ChronoZonedDateTime 来自另一个时空对象。
|
ChronoZonedDateTime<ThaiBuddhistDate> |
ThaiBuddhistChronology.zonedDateTime(TemporalAccessor temporal) |
ChronoZonedDateTime<JapaneseDate> |
JapaneseChronology.zonedDateTime(TemporalAccessor temporal) |
ChronoZonedDateTime<MinguoDate> |
MinguoChronology.zonedDateTime(TemporalAccessor temporal) |
ChronoZonedDateTime<HijrahDate> |
HijrahChronology.zonedDateTime(TemporalAccessor temporal) |
Modifier and Type | Method and Description |
---|---|
static Comparator<ChronoZonedDateTime<?>> |
ChronoZonedDateTime.timeLineOrder()
获取一个比较器,比较
ChronoZonedDateTime 时间线的顺序忽略年表。
|
Modifier and Type | Method and Description |
---|---|
default int |
ChronoZonedDateTime.compareTo(ChronoZonedDateTime<?> other)
将此日期时间与另一个日期时间进行比较,包括年代。
|
default boolean |
ChronoZonedDateTime.isAfter(ChronoZonedDateTime<?> other)
检查此日期时间的即时是否在指定日期时间之后。
|
default boolean |
ChronoZonedDateTime.isBefore(ChronoZonedDateTime<?> other)
检查此日期时间的即时是否在指定日期时间之前。
|
default boolean |
ChronoZonedDateTime.isEqual(ChronoZonedDateTime<?> other)
检查此日期时间的即时是否等于指定日期时间的时间。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.