java.time 包的共享 API
编辑java.time 包的共享 API
编辑请参阅 共享 API,以获取所有包和类的概述。
Clock
编辑DateTimeException
编辑- DateTimeException(null)
- boolean equals(Object)
- null getLocalizedMessage()
- null getMessage()
- StackTraceElement[] getStackTrace()
- int hashCode()
- null toString()
DayOfWeek
编辑- static DayOfWeek FRIDAY
- static DayOfWeek MONDAY
- static DayOfWeek SATURDAY
- static DayOfWeek SUNDAY
- static DayOfWeek THURSDAY
- static DayOfWeek TUESDAY
- static DayOfWeek WEDNESDAY
- static DayOfWeek from(TemporalAccessor)
- static DayOfWeek of(int)
- static DayOfWeek valueOf(null)
- static DayOfWeek[] values()
- Temporal adjustInto(Temporal)
- int compareTo(Enum)
- boolean equals(Object)
- int get(TemporalField)
- null getDisplayName(TextStyle, Locale)
- long getLong(TemporalField)
- int getValue()
- int hashCode()
- boolean isSupported(TemporalField)
- DayOfWeek minus(long)
- null name()
- int ordinal()
- DayOfWeek plus(long)
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- null toString()
Duration
编辑- static Duration ZERO
- static Duration between(Temporal, Temporal)
- static Duration from(TemporalAmount)
- static Duration of(long, TemporalUnit)
- static Duration ofDays(long)
- static Duration ofHours(long)
- static Duration ofMillis(long)
- static Duration ofMinutes(long)
- static Duration ofNanos(long)
- static Duration ofSeconds(long)
- static Duration ofSeconds(long, long)
- static Duration parse(CharSequence)
- Duration abs()
- Temporal addTo(Temporal)
- int compareTo(Duration)
- Duration dividedBy(long)
- boolean equals(Object)
- long get(TemporalUnit)
- int getNano()
- long getSeconds()
- List getUnits()
- int hashCode()
- boolean isNegative()
- boolean isZero()
- Duration minus(Duration)
- Duration minus(long, TemporalUnit)
- Duration minusDays(long)
- Duration minusHours(long)
- Duration minusMillis(long)
- Duration minusMinutes(long)
- Duration minusNanos(long)
- Duration minusSeconds(long)
- Duration multipliedBy(long)
- Duration negated()
- Duration plus(Duration)
- Duration plus(long, TemporalUnit)
- Duration plusDays(long)
- Duration plusHours(long)
- Duration plusMillis(long)
- Duration plusMinutes(long)
- Duration plusNanos(long)
- Duration plusSeconds(long)
- Temporal subtractFrom(Temporal)
- long toDays()
- long toHours()
- long toMillis()
- long toMinutes()
- long toNanos()
- null toString()
- Duration withNanos(int)
- Duration withSeconds(long)
Instant
编辑- static Instant EPOCH
- static Instant MAX
- static Instant MIN
- static Instant from(TemporalAccessor)
- static Instant ofEpochMilli(long)
- static Instant ofEpochSecond(long)
- static Instant ofEpochSecond(long, long)
- static Instant parse(CharSequence)
- Temporal adjustInto(Temporal)
- OffsetDateTime atOffset(ZoneOffset)
- ZonedDateTime atZone(ZoneId)
- int compareTo(Instant)
- boolean equals(Object)
- int get(TemporalField)
- long getEpochSecond()
- long getLong(TemporalField)
- int getNano()
- int hashCode()
- boolean isAfter(Instant)
- boolean isBefore(Instant)
- boolean isSupported(TemporalField)
- Instant minus(TemporalAmount)
- Instant minus(long, TemporalUnit)
- Instant minusMillis(long)
- Instant minusNanos(long)
- Instant minusSeconds(long)
- Instant plus(TemporalAmount)
- Instant plus(long, TemporalUnit)
- Instant plusMillis(long)
- Instant plusNanos(long)
- Instant plusSeconds(long)
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- long toEpochMilli()
- null toString()
- Instant truncatedTo(TemporalUnit)
- long until(Temporal, TemporalUnit)
- Instant with(TemporalAdjuster)
- Instant with(TemporalField, long)
LocalDate
编辑- static LocalDate MAX
- static LocalDate MIN
- static LocalDate from(TemporalAccessor)
- static LocalDate of(int, int, int)
- static LocalDate ofEpochDay(long)
- static LocalDate ofYearDay(int, int)
- static LocalDate parse(CharSequence)
- static LocalDate parse(CharSequence, DateTimeFormatter)
- Temporal adjustInto(Temporal)
- LocalDateTime atStartOfDay()
- ZonedDateTime atStartOfDay(ZoneId)
- LocalDateTime atTime(LocalTime)
- LocalDateTime atTime(int, int)
- LocalDateTime atTime(int, int, int)
- LocalDateTime atTime(int, int, int, int)
- int compareTo(ChronoLocalDate)
- boolean equals(Object)
- null format(DateTimeFormatter)
- int get(TemporalField)
- IsoChronology getChronology()
- int getDayOfMonth()
- DayOfWeek getDayOfWeek()
- int getDayOfYear()
- Era getEra()
- long getLong(TemporalField)
- Month getMonth()
- int getMonthValue()
- int getYear()
- int hashCode()
- boolean isAfter(ChronoLocalDate)
- boolean isBefore(ChronoLocalDate)
- boolean isEqual(ChronoLocalDate)
- boolean isLeapYear()
- boolean isSupported(TemporalField)
- int lengthOfMonth()
- int lengthOfYear()
- LocalDate minus(TemporalAmount)
- LocalDate minus(long, TemporalUnit)
- LocalDate minusDays(long)
- LocalDate minusMonths(long)
- LocalDate minusWeeks(long)
- LocalDate minusYears(long)
- LocalDate plus(TemporalAmount)
- LocalDate plus(long, TemporalUnit)
- LocalDate plusDays(long)
- LocalDate plusMonths(long)
- LocalDate plusWeeks(long)
- LocalDate plusYears(long)
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- long toEpochDay()
- null toString()
- Period until(ChronoLocalDate)
- long until(Temporal, TemporalUnit)
- LocalDate with(TemporalAdjuster)
- LocalDate with(TemporalField, long)
- LocalDate withDayOfMonth(int)
- LocalDate withDayOfYear(int)
- LocalDate withMonth(int)
- LocalDate withYear(int)
LocalDateTime
编辑- static LocalDateTime MAX
- static LocalDateTime MIN
- static LocalDateTime from(TemporalAccessor)
- static LocalDateTime of(LocalDate, LocalTime)
- static LocalDateTime of(int, int, int, int, int)
- static LocalDateTime of(int, int, int, int, int, int)
- static LocalDateTime of(int, int, int, int, int, int, int)
- static LocalDateTime ofEpochSecond(long, int, ZoneOffset)
- static LocalDateTime ofInstant(Instant, ZoneId)
- static LocalDateTime parse(CharSequence)
- static LocalDateTime parse(CharSequence, DateTimeFormatter)
- Temporal adjustInto(Temporal)
- OffsetDateTime atOffset(ZoneOffset)
- ZonedDateTime atZone(ZoneId)
- int compareTo(ChronoLocalDateTime)
- boolean equals(Object)
- null format(DateTimeFormatter)
- int get(TemporalField)
- Chronology getChronology()
- int getDayOfMonth()
- DayOfWeek getDayOfWeek()
- int getDayOfYear()
- int getHour()
- long getLong(TemporalField)
- int getMinute()
- Month getMonth()
- int getMonthValue()
- int getNano()
- int getSecond()
- int getYear()
- int hashCode()
- boolean isAfter(ChronoLocalDateTime)
- boolean isBefore(ChronoLocalDateTime)
- boolean isEqual(ChronoLocalDateTime)
- boolean isSupported(TemporalField)
- LocalDateTime minus(TemporalAmount)
- LocalDateTime minus(long, TemporalUnit)
- LocalDateTime minusDays(long)
- LocalDateTime minusHours(long)
- LocalDateTime minusMinutes(long)
- LocalDateTime minusMonths(long)
- LocalDateTime minusNanos(long)
- LocalDateTime minusSeconds(long)
- LocalDateTime minusWeeks(long)
- LocalDateTime minusYears(long)
- LocalDateTime plus(TemporalAmount)
- LocalDateTime plus(long, TemporalUnit)
- LocalDateTime plusDays(long)
- LocalDateTime plusHours(long)
- LocalDateTime plusMinutes(long)
- LocalDateTime plusMonths(long)
- LocalDateTime plusNanos(long)
- LocalDateTime plusSeconds(long)
- LocalDateTime plusWeeks(long)
- LocalDateTime plusYears(long)
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- long toEpochSecond(ZoneOffset)
- Instant toInstant(ZoneOffset)
- LocalDate toLocalDate()
- LocalTime toLocalTime()
- null toString()
- LocalDateTime truncatedTo(TemporalUnit)
- long until(Temporal, TemporalUnit)
- LocalDateTime with(TemporalAdjuster)
- LocalDateTime with(TemporalField, long)
- LocalDateTime withDayOfMonth(int)
- LocalDateTime withDayOfYear(int)
- LocalDateTime withHour(int)
- LocalDateTime withMinute(int)
- LocalDateTime withMonth(int)
- LocalDateTime withSecond(int)
- LocalDateTime withYear(int)
LocalTime
编辑- static LocalTime MAX
- static LocalTime MIDNIGHT
- static LocalTime MIN
- static LocalTime NOON
- static LocalTime from(TemporalAccessor)
- static LocalTime of(int, int)
- static LocalTime of(int, int, int)
- static LocalTime of(int, int, int, int)
- static LocalTime ofNanoOfDay(long)
- static LocalTime ofSecondOfDay(long)
- static LocalTime parse(CharSequence)
- static LocalTime parse(CharSequence, DateTimeFormatter)
- Temporal adjustInto(Temporal)
- LocalDateTime atDate(LocalDate)
- OffsetTime atOffset(ZoneOffset)
- int compareTo(LocalTime)
- boolean equals(Object)
- null format(DateTimeFormatter)
- int get(TemporalField)
- int getHour()
- long getLong(TemporalField)
- int getMinute()
- int getNano()
- int getSecond()
- int hashCode()
- boolean isAfter(LocalTime)
- boolean isBefore(LocalTime)
- boolean isSupported(TemporalField)
- LocalTime minus(TemporalAmount)
- LocalTime minus(long, TemporalUnit)
- LocalTime minusHours(long)
- LocalTime minusMinutes(long)
- LocalTime minusNanos(long)
- LocalTime minusSeconds(long)
- LocalTime plus(TemporalAmount)
- LocalTime plus(long, TemporalUnit)
- LocalTime plusHours(long)
- LocalTime plusMinutes(long)
- LocalTime plusNanos(long)
- LocalTime plusSeconds(long)
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- long toNanoOfDay()
- int toSecondOfDay()
- null toString()
- LocalTime truncatedTo(TemporalUnit)
- long until(Temporal, TemporalUnit)
- LocalTime with(TemporalAdjuster)
- LocalTime with(TemporalField, long)
- LocalTime withHour(int)
- LocalTime withMinute(int)
- LocalTime withNano(int)
- LocalTime withSecond(int)
月份
编辑- 静态 Month APRIL
- 静态 Month AUGUST
- 静态 Month DECEMBER
- 静态 Month FEBRUARY
- 静态 Month JANUARY
- 静态 Month JULY
- 静态 Month JUNE
- 静态 Month MARCH
- 静态 Month MAY
- 静态 Month NOVEMBER
- 静态 Month OCTOBER
- 静态 Month SEPTEMBER
- 静态 Month from(TemporalAccessor)
- 静态 Month of(int)
- 静态 Month valueOf(null)
- 静态 Month[] values()
- Temporal adjustInto(Temporal)
- int compareTo(Enum)
- boolean equals(Object)
- int firstDayOfYear(boolean)
- Month firstMonthOfQuarter()
- int get(TemporalField)
- null getDisplayName(TextStyle, Locale)
- long getLong(TemporalField)
- int getValue()
- int hashCode()
- boolean isSupported(TemporalField)
- int length(boolean)
- int maxLength()
- int minLength()
- Month minus(long)
- null name()
- int ordinal()
- Month plus(long)
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- null toString()
月日
编辑- 静态 MonthDay from(TemporalAccessor)
- 静态 MonthDay of(int, int)
- 静态 MonthDay parse(CharSequence)
- 静态 MonthDay parse(CharSequence, DateTimeFormatter)
- Temporal adjustInto(Temporal)
- LocalDate atYear(int)
- int compareTo(MonthDay)
- boolean equals(Object)
- null format(DateTimeFormatter)
- int get(TemporalField)
- int getDayOfMonth()
- long getLong(TemporalField)
- Month getMonth()
- int getMonthValue()
- int hashCode()
- boolean isAfter(MonthDay)
- boolean isBefore(MonthDay)
- boolean isSupported(TemporalField)
- boolean isValidYear(int)
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- null toString()
- MonthDay with(Month)
- MonthDay withDayOfMonth(int)
- MonthDay withMonth(int)
带偏移量的日期时间
编辑- 静态 OffsetDateTime MAX
- 静态 OffsetDateTime MIN
- 静态 OffsetDateTime from(TemporalAccessor)
- 静态 OffsetDateTime of(LocalDateTime, ZoneOffset)
- 静态 OffsetDateTime of(LocalDate, LocalTime, ZoneOffset)
- 静态 OffsetDateTime of(int, int, int, int, int, int, int, ZoneOffset)
- 静态 OffsetDateTime ofInstant(Instant, ZoneId)
- 静态 OffsetDateTime parse(CharSequence)
- 静态 OffsetDateTime parse(CharSequence, DateTimeFormatter)
- 静态 Comparator timeLineOrder()
- Temporal adjustInto(Temporal)
- ZonedDateTime atZoneSameInstant(ZoneId)
- ZonedDateTime atZoneSimilarLocal(ZoneId)
- int compareTo(OffsetDateTime)
- boolean equals(Object)
- null format(DateTimeFormatter)
- int get(TemporalField)
- int getDayOfMonth()
- DayOfWeek getDayOfWeek()
- int getDayOfYear()
- int getHour()
- long getLong(TemporalField)
- int getMinute()
- Month getMonth()
- int getMonthValue()
- int getNano()
- ZoneOffset getOffset()
- int getSecond()
- int getYear()
- int hashCode()
- boolean isAfter(OffsetDateTime)
- boolean isBefore(OffsetDateTime)
- boolean isEqual(OffsetDateTime)
- boolean isSupported(TemporalField)
- OffsetDateTime minus(TemporalAmount)
- OffsetDateTime minus(long, TemporalUnit)
- OffsetDateTime minusDays(long)
- OffsetDateTime minusHours(long)
- OffsetDateTime minusMinutes(long)
- OffsetDateTime minusMonths(long)
- OffsetDateTime minusNanos(long)
- OffsetDateTime minusSeconds(long)
- OffsetDateTime minusWeeks(long)
- OffsetDateTime minusYears(long)
- OffsetDateTime plus(TemporalAmount)
- OffsetDateTime plus(long, TemporalUnit)
- OffsetDateTime plusDays(long)
- OffsetDateTime plusHours(long)
- OffsetDateTime plusMinutes(long)
- OffsetDateTime plusMonths(long)
- OffsetDateTime plusNanos(long)
- OffsetDateTime plusSeconds(long)
- OffsetDateTime plusWeeks(long)
- OffsetDateTime plusYears(long)
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- long toEpochSecond()
- Instant toInstant()
- LocalDate toLocalDate()
- LocalDateTime toLocalDateTime()
- LocalTime toLocalTime()
- OffsetTime toOffsetTime()
- null toString()
- ZonedDateTime toZonedDateTime()
- OffsetDateTime truncatedTo(TemporalUnit)
- long until(Temporal, TemporalUnit)
- OffsetDateTime with(TemporalAdjuster)
- OffsetDateTime with(TemporalField, long)
- OffsetDateTime withDayOfMonth(int)
- OffsetDateTime withDayOfYear(int)
- OffsetDateTime withHour(int)
- OffsetDateTime withMinute(int)
- OffsetDateTime withMonth(int)
- OffsetDateTime withNano(int)
- OffsetDateTime withOffsetSameInstant(ZoneOffset)
- OffsetDateTime withOffsetSameLocal(ZoneOffset)
- OffsetDateTime withSecond(int)
- OffsetDateTime withYear(int)
OffsetTime
编辑- 静态 OffsetTime MAX
- 静态 OffsetTime MIN
- 静态 OffsetTime from(TemporalAccessor)
- 静态 OffsetTime of(LocalTime, ZoneOffset)
- 静态 OffsetTime of(int, int, int, int, ZoneOffset)
- 静态 OffsetTime ofInstant(Instant, ZoneId)
- 静态 OffsetTime parse(CharSequence)
- 静态 OffsetTime parse(CharSequence, DateTimeFormatter)
- Temporal adjustInto(Temporal)
- int compareTo(OffsetTime)
- boolean equals(Object)
- null format(DateTimeFormatter)
- int get(TemporalField)
- int getHour()
- long getLong(TemporalField)
- int getMinute()
- int getNano()
- ZoneOffset getOffset()
- int getSecond()
- int hashCode()
- boolean isAfter(OffsetTime)
- boolean isBefore(OffsetTime)
- boolean isEqual(OffsetTime)
- boolean isSupported(TemporalField)
- OffsetTime minus(TemporalAmount)
- OffsetTime minus(long, TemporalUnit)
- OffsetTime minusHours(long)
- OffsetTime minusMinutes(long)
- OffsetTime minusNanos(long)
- OffsetTime minusSeconds(long)
- OffsetTime plus(TemporalAmount)
- OffsetTime plus(long, TemporalUnit)
- OffsetTime plusHours(long)
- OffsetTime plusMinutes(long)
- OffsetTime plusNanos(long)
- OffsetTime plusSeconds(long)
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- LocalTime toLocalTime()
- null toString()
- OffsetTime truncatedTo(TemporalUnit)
- long until(Temporal, TemporalUnit)
- OffsetTime with(TemporalAdjuster)
- OffsetTime with(TemporalField, long)
- OffsetTime withHour(int)
- OffsetTime withMinute(int)
- OffsetTime withNano(int)
- OffsetTime withOffsetSameInstant(ZoneOffset)
- OffsetTime withOffsetSameLocal(ZoneOffset)
- OffsetTime withSecond(int)
Period
编辑- 静态 Period ZERO
- 静态 Period between(LocalDate, LocalDate)
- 静态 Period from(TemporalAmount)
- 静态 Period of(int, int, int)
- 静态 Period ofDays(int)
- 静态 Period ofMonths(int)
- 静态 Period ofWeeks(int)
- 静态 Period ofYears(int)
- 静态 Period parse(CharSequence)
- Temporal addTo(Temporal)
- boolean equals(Object)
- long get(TemporalUnit)
- IsoChronology getChronology()
- int getDays()
- int getMonths()
- List getUnits()
- int getYears()
- int hashCode()
- boolean isNegative()
- boolean isZero()
- Period minus(TemporalAmount)
- Period minusDays(long)
- Period minusMonths(long)
- Period minusYears(long)
- Period multipliedBy(int)
- Period negated()
- Period normalized()
- Period plus(TemporalAmount)
- Period plusDays(long)
- Period plusMonths(long)
- Period plusYears(long)
- Temporal subtractFrom(Temporal)
- null toString()
- long toTotalMonths()
- Period withDays(int)
- Period withMonths(int)
- Period withYears(int)
Year
编辑- 静态 int MAX_VALUE
- 静态 int MIN_VALUE
- 静态 Year from(TemporalAccessor)
- 静态 boolean isLeap(long)
- 静态 Year of(int)
- 静态 Year parse(CharSequence)
- 静态 Year parse(CharSequence, DateTimeFormatter)
- Temporal adjustInto(Temporal)
- LocalDate atDay(int)
- YearMonth atMonth(int)
- LocalDate atMonthDay(MonthDay)
- int compareTo(Year)
- boolean equals(Object)
- null format(DateTimeFormatter)
- int get(TemporalField)
- long getLong(TemporalField)
- int getValue()
- int hashCode()
- boolean isAfter(Year)
- boolean isLeap()
- boolean isSupported(TemporalField)
- boolean isValidMonthDay(MonthDay)
- int length()
- Year minus(TemporalAmount)
- Year minus(long, TemporalUnit)
- Year minusYears(long)
- Year plus(TemporalAmount)
- Year plus(long, TemporalUnit)
- Year plusYears(long)
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- null toString()
- long until(Temporal, TemporalUnit)
- Year with(TemporalAdjuster)
- Year with(TemporalField, long)
年-月
编辑- static YearMonth from(TemporalAccessor)
- static YearMonth of(int, int)
- static YearMonth parse(CharSequence)
- static YearMonth parse(CharSequence, DateTimeFormatter)
- Temporal adjustInto(Temporal)
- LocalDate atDay(int)
- LocalDate atEndOfMonth()
- int compareTo(YearMonth)
- boolean equals(Object)
- null format(DateTimeFormatter)
- int get(TemporalField)
- long getLong(TemporalField)
- Month getMonth()
- int getMonthValue()
- int getYear()
- int hashCode()
- boolean isAfter(YearMonth)
- boolean isBefore(YearMonth)
- boolean isLeapYear()
- boolean isSupported(TemporalField)
- boolean isValidDay(int)
- int lengthOfMonth()
- int lengthOfYear()
- YearMonth minus(TemporalAmount)
- YearMonth minus(long, TemporalUnit)
- YearMonth minusMonths(long)
- YearMonth minusYears(long)
- YearMonth plus(TemporalAmount)
- YearMonth plus(long, TemporalUnit)
- YearMonth plusMonths(long)
- YearMonth plusYears(long)
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- null toString()
- long until(Temporal, TemporalUnit)
- YearMonth with(TemporalAdjuster)
- YearMonth with(TemporalField, long)
- YearMonth withMonth(int)
- YearMonth withYear(int)
时区
编辑- static Map SHORT_IDS
- static ZoneId from(TemporalAccessor)
- static Set getAvailableZoneIds()
- static ZoneId of(null)
- static ZoneId of(null, Map)
- static ZoneId ofOffset(null, ZoneOffset)
- static ZoneId systemDefault()
- boolean equals(Object)
- null getDisplayName(TextStyle, Locale)
- null getId()
- ZoneRules getRules()
- int hashCode()
- ZoneId normalized()
- null toString()
时区偏移量
编辑- static ZoneOffset MAX
- static ZoneOffset MIN
- static ZoneOffset UTC
- static ZoneOffset from(TemporalAccessor)
- static ZoneOffset of(null)
- static ZoneOffset ofHours(int)
- static ZoneOffset ofHoursMinutes(int, int)
- static ZoneOffset ofHoursMinutesSeconds(int, int, int)
- static ZoneOffset ofTotalSeconds(int)
- Temporal adjustInto(Temporal)
- int compareTo(def)
- boolean equals(Object)
- int get(TemporalField)
- null getDisplayName(TextStyle, Locale)
- null getId()
- long getLong(TemporalField)
- ZoneRules getRules()
- int getTotalSeconds()
- int hashCode()
- boolean isSupported(TemporalField)
- ZoneId normalized()
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- null toString()
带时区的日期时间
编辑- static ZonedDateTime from(TemporalAccessor)
- static ZonedDateTime of(LocalDateTime, ZoneId)
- static ZonedDateTime of(LocalDate, LocalTime, ZoneId)
- static ZonedDateTime of(int, int, int, int, int, int, int, ZoneId)
- static ZonedDateTime ofInstant(Instant, ZoneId)
- static ZonedDateTime ofInstant(LocalDateTime, ZoneOffset, ZoneId)
- static ZonedDateTime ofLocal(LocalDateTime, ZoneId, ZoneOffset)
- static ZonedDateTime ofStrict(LocalDateTime, ZoneOffset, ZoneId)
- static ZonedDateTime parse(CharSequence)
- static ZonedDateTime parse(CharSequence, DateTimeFormatter)
- int compareTo(ChronoZonedDateTime)
- boolean equals(Object)
- null format(DateTimeFormatter)
- int get(TemporalField)
- Chronology getChronology()
- int getDayOfMonth()
- DayOfWeek getDayOfWeek() 获取星期几
- int getDayOfYear() 获取一年中的第几天
- int getHour() 获取小时
- long getLong(TemporalField)
- int getMinute() 获取分钟
- Month getMonth() 获取月份
- int getMonthValue() 获取月份值(1-12)
- int getNano() 获取纳秒
- ZoneOffset getOffset() 获取时区偏移量
- int getSecond() 获取秒
- int getYear() 获取年份
- ZoneId getZone() 获取时区
- int hashCode() 获取哈希码
- boolean isAfter(ChronoZonedDateTime) 判断是否在指定日期时间之后
- boolean isBefore(ChronoZonedDateTime) 判断是否在指定日期时间之前
- boolean isEqual(ChronoZonedDateTime) 判断是否与指定日期时间相等
- boolean isSupported(TemporalField)
- ZonedDateTime minus(TemporalAmount) 减去指定时间量
- ZonedDateTime minus(long, TemporalUnit) 减去指定时间单位的数量
- ZonedDateTime minusDays(long) 减去指定天数
- ZonedDateTime minusHours(long) 减去指定小时数
- ZonedDateTime minusMinutes(long) 减去指定分钟数
- ZonedDateTime minusMonths(long) 减去指定月数
- ZonedDateTime minusNanos(long) 减去指定纳秒数
- ZonedDateTime minusSeconds(long) 减去指定秒数
- ZonedDateTime minusWeeks(long) 减去指定周数
- ZonedDateTime minusYears(long) 减去指定年数
- ZonedDateTime plus(TemporalAmount) 加上指定时间量
- ZonedDateTime plus(long, TemporalUnit) 加上指定时间单位的数量
- ZonedDateTime plusDays(long) 加上指定天数
- ZonedDateTime plusHours(long) 加上指定小时数
- ZonedDateTime plusMinutes(long) 加上指定分钟数
- ZonedDateTime plusMonths(long) 加上指定月数
- ZonedDateTime plusNanos(long) 加上指定纳秒数
- ZonedDateTime plusSeconds(long) 加上指定秒数
- ZonedDateTime plusWeeks(long) 加上指定周数
- ZonedDateTime plusYears(long) 加上指定年数
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- long toEpochSecond() 将日期时间转换为自1970年1月1日00:00:00 UTC以来的秒数
- Instant toInstant() 将日期时间转换为Instant对象
- LocalDate toLocalDate() 将日期时间转换为LocalDate对象
- LocalDateTime toLocalDateTime() 将日期时间转换为LocalDateTime对象
- LocalTime toLocalTime() 将日期时间转换为LocalTime对象
- OffsetDateTime toOffsetDateTime() 将日期时间转换为OffsetDateTime对象
- null toString() 将日期时间转换为字符串
- ZonedDateTime truncatedTo(TemporalUnit) 将日期时间截断到指定时间单位
- long until(Temporal, TemporalUnit)
- ZonedDateTime with(TemporalAdjuster) 使用指定调整器调整日期时间
- ZonedDateTime with(TemporalField, long) 将指定字段设置为指定值
- ZonedDateTime withDayOfMonth(int) 将日期设置为指定日期
- ZonedDateTime withDayOfYear(int) 将日期设置为一年中的第几天
- ZonedDateTime withEarlierOffsetAtOverlap() 在重叠时区中选择较早的偏移量
- ZonedDateTime withFixedOffsetZone() 将时区更改为固定偏移量时区
- ZonedDateTime withHour(int) 将小时设置为指定小时
- ZonedDateTime withLaterOffsetAtOverlap() 在重叠时区中选择较晚的偏移量
- ZonedDateTime withMinute(int) 将分钟设置为指定分钟
- ZonedDateTime withMonth(int) 将月份设置为指定月份
- ZonedDateTime withNano(int) 将纳秒设置为指定纳秒
- ZonedDateTime withSecond(int) 将秒设置为指定秒
- ZonedDateTime withYear(int) 将年份设置为指定年份
- ZonedDateTime withZoneSameInstant(ZoneId) 保持相同瞬间,更改时区
- ZonedDateTime withZoneSameLocal(ZoneId) 保持本地时间,更改时区