| 先生。 |
方法及说明 |
| 1 |
布尔等于(对象 obj)
检查此日期时间是否等于另一个日期时间。 |
| 2 |
字符串格式(DateTimeFormatter格式化程序)
使用指定的格式化程序格式化该日期时间。 |
| 3 |
来自(TemporalAccessor 时间)的静态 ZonedDateTime
从时间对象获取 ZonedDateTime 的实例。 |
| 4 |
int get(TemporalField 字段)
获取此日期时间中指定字段的 int 值。 |
| 5 |
int getDayOfMonth()
获取月份中的日期字段。 |
| 6 |
DayOfWeek getDayOfWeek()
获取星期几字段,它是枚举 DayOfWeek。 |
| 7 |
int getDayOfYear()
获取年份字段。 |
| 8 |
int getHour()
获取一天中的小时字段。 |
| 9 |
long getLong(TemporalField 字段)
获取此日期时间中指定字段的长整型值。 |
| 10 |
月份 getMinute()
获取分钟字段。 |
| 11 |
月份 getMonth()
使用 Month 枚举获取年份字段。 |
| 12 |
int getMonthValue()
获取从 1 到 12 的月份字段。 |
| 13 |
int getNano()
获取纳秒级字段。 |
| 14 |
ZoneOffset getOffset()
获取区域偏移量,例如“+01:00”。 |
| 15 |
int getSecond()
获取第二分钟字段。 |
| 16 |
int getYear()
获取年份字段。 |
| 17 号 |
ZoneId getZone()
获取时区,例如“欧洲/巴黎”。 |
| 18 |
int 哈希码()
该日期时间的哈希码。 |
| 19 |
boolean isSupported(TemporalField 字段)
检查指定字段是否受支持。 |
| 20 |
boolean isSupported(TemporalUnit 单位)
检查指定的单位是否受支持。 |
| 21 |
ZonedDateTime minus(long amountToSubtract, TemporalUnit 单位)
返回此日期时间的副本并减去指定的金额。 |
| 22 |
ZonedDateTime minus(TemporalAmount amountToSubtract)
返回此日期时间的副本并减去指定的金额。 |
| 23 |
ZonedDateTime minusDays(long daysToSubtract)
返回此 ZonedDateTime 的副本,并减去指定的天数。 |
| 24 |
ZonedDateTime minusHours(长小时ToSubtract)
返回此 ZonedDateTime 的副本,并减去指定的小时数。 |
| 25 |
ZonedDateTime minusMinutes(长分钟ToSubtract)
返回此 ZonedDateTime 的副本,并减去指定的分钟数。 |
| 26 |
ZonedDateTime minusMonths(长月数减去)
返回此 ZonedDateTime 的副本,并减去指定的月数。 |
| 27 |
ZonedDateTime minusNanos(长纳秒)
返回此 ZonedDateTime 的副本,并减去指定的纳秒数。 |
| 28 |
ZonedDateTime minusSeconds(长秒)
返回此 ZonedDateTime 的副本,并减去指定的秒数。 |
| 29 |
ZonedDateTime minusWeeks(long weekToSubtract)
返回此 ZonedDateTime 的副本,并减去指定的周数。 |
| 30 |
ZonedDateTime minusYears(longyearsToSubtract)
返回此 ZonedDateTime 的副本,并减去指定的年数。 |
| 31 |
静态 ZonedDateTime now()
从默认时区的系统时钟获取当前日期时间。 |
| 32 |
现在静态 ZonedDateTime(时钟)
从指定时钟获取当前日期时间。 |
| 33 |
现在静态 ZonedDateTime(ZoneId 区域)
从指定时区的系统时钟获取当前日期时间。 |
| 34 |
静态 ZonedDateTime of(int 年、int 月、int dayOfMonth、int 小时、int 分钟、int 秒、int nanoOfSecond、ZoneId 区域)
从年、月、日、小时、分钟、秒、纳秒和时区获取 ZonedDateTime 的实例。 |
| 35 |
静态 ZonedDateTime of(LocalDate 日期、LocalTime 时间、ZoneId 区域)
从日期和时间获取 ZonedDateTime 的实例。 |
| 36 |
静态 ZonedDateTime of(LocalDateTime 日期,ZoneId 区域)
从本地日期时间获取 ZonedDateTime 的实例。 |
| 37 |
static ZonedDateTime ofInstant(即时即时,ZoneId 区域)
从 Instant 和区域 ID 获取 ZonedDateTime 的实例。 |
| 38 |
static ZonedDateTime ofInstant(LocalDateTime localDateTime, ZoneOffset 偏移量, ZoneId 区域)
从通过组合本地日期时间和偏移量形成的瞬间获取 ZonedDateTime 的实例。 |
| 39 |
static ZonedDateTime ofLocal(LocalDateTime localDateTime, ZoneId zone, ZoneOffset PreferredOffset)
如果可能,使用首选偏移量从本地日期时间获取 ZonedDateTime 的实例。 |
| 40 |
static ZonedDateTime ofStrict(LocalDateTime localDateTime, ZoneOffset 偏移量, ZoneId 区域)
获取严格验证本地日期时间、偏移量和区域 ID 组合的 ZonedDateTime 实例。 |
| 41 |
静态 ZonedDateTime 解析(CharSequence 文本)
从文本字符串(例如 2007-12-03T10:15:30+01:00[Europe/Paris])获取 ZonedDateTime 的实例。 |
| 42 |
静态 ZonedDateTime 解析(CharSequence 文本,DateTimeFormatter 格式化程序)
使用特定格式化程序从文本字符串获取 ZonedDateTime 的实例。 |
| 43 |
ZonedDateTime plus(long amountToAdd, TemporalUnit 单位)
返回此日期时间的副本,并添加指定的金额。 |
| 44 |
ZonedDateTime plus(TemporalAmount amountToAdd)
返回此日期时间的副本,并添加指定的金额。 |
| 45 |
ZonedDateTime plusDays(long daysToAdd)
返回此 ZonedDateTime 的副本,并添加指定的天数。 |
| 46 |
ZonedDateTime plusHours(长小时ToAdd)
返回此 ZonedDateTime 的副本,并添加指定的小时数。 |
| 47 |
ZonedDateTime plusMinutes(长分钟ToAdd)
返回此 ZonedDateTime 的副本,并添加指定的分钟数。 |
| 48 |
ZonedDateTime plusMonths(长月份ToAdd)
返回此 ZonedDateTime 的副本,并添加指定的月数。 |
| 49 |
ZonedDateTime plusNanos(长纳秒)
返回此 ZonedDateTime 的副本,并添加指定的纳秒数。 |
| 50 |
ZonedDateTime plusSeconds(长秒)
返回此 ZonedDateTime 的副本,并添加指定的秒数。 |
| 51 |
ZonedDateTime plusWeeks(long weekToAdd)
返回此 ZonedDateTime 的副本,并添加指定的周数。 |
| 52 |
ZonedDateTime plusYears(longyearsToAdd)
返回此 ZonedDateTime 的副本,并添加指定的年数。 |
| 53 |
<R> R 查询(TemporalQuery<R> 查询)
使用指定的查询查询此日期时间。 |
| 54 |
ValueRange范围(TemporalField字段)
获取指定字段的有效值范围。 |
| 55 |
本地日期到本地日期()
获取此日期时间的 LocalDate 部分。 |
| 56 |
本地时间 to 本地时间()
获取此日期时间的 LocalTime 部分。 |
| 57 |
OffsetDateTime toOffsetDateTime()
将此日期时间转换为 OffsetDateTime。 |
| 58 |
字符串转字符串()
将此日期输出为字符串,例如 2007-12-03T10:15:30+01:00[Europe/Paris]。 |
| 59 |
ZonedDateTime truncatedTo(TemporalUnit 单位)
返回此 ZonedDateTime 的副本,其中时间被截断。 |
| 60 |
长直到(Temporal endExclusive,TemporalUnit 单位)
按照指定单位计算距另一个日期时间的时间量。 |
| 61 |
ZonedDateTime with(TemporalAdjuster 调整器)
返回此日期时间的调整后的副本。 |
| 62 |
ZonedDateTime with(TemporalField 字段, long newValue)
返回此日期时间的副本,并将指定字段设置为新值。 |
| 63 |
ZonedDateTime withDayOfMonth(int dayOfMonth)
返回此 ZonedDateTime 的副本,其中日期已更改。 |
| 64 |
ZonedDateTime withDayOfYear(int dayOfYear)
返回此 ZonedDateTime 的副本,其中年份已更改。 |
| 65 |
ZonedDateTime withEarlierOffsetAtOverlap()
返回此日期时间的副本,将区域偏移量更改为本地时间线重叠处的两个有效偏移量中较早的一个。 |
| 66 |
ZonedDateTime withFixedOffsetZone()
返回此日期时间的副本,并将区域 ID 设置为偏移量。 |
| 67 |
ZonedDateTime withHour(int hour)
返回此 ZonedDateTime 的副本,其中更改了一天中的小时。 |
| 68 |
ZonedDateTime withLaterOffsetAtOverlap()
返回此日期时间的副本,将区域偏移量更改为本地时间线重叠处的两个有效偏移量中较晚的一个。 |
| 69 |
ZonedDateTime withMinute(int 分钟)
返回此 ZonedDateTime 的副本,并更改小时的分钟数。 |
| 70 |
带月份的分区日期时间(int 月份)
返回此 ZonedDateTime 的副本,其中年份月份已更改。 |
| 71 |
ZonedDateTime withNano(int nanoOfSecond)
返回此 ZonedDateTime 的副本,并更改纳秒级。 |
| 72 |
ZonedDateTime withSecond(int 秒)
返回此 ZonedDateTime 的副本,并更改分钟秒数。 |
| 73 |
ZonedDateTime withYear(intyear)
返回此 ZonedDateTime 的副本,其中年份已更改。 |
| 74 |
ZonedDateTime withZoneSameInstant(ZoneId zone)
返回此日期时间的副本,具有不同的时区,保留即时。 |
| 75 |
ZonedDateTime withZoneSameLocal(ZoneId zone)
返回具有不同时区的该日期时间的副本,如果可能,保留本地日期时间。 |