接口的使用
java.time.temporal.TemporalAdjuster
使用 TemporalAdjuster 的包
包
描述
日期、时间、瞬间和持续时间的主要 API。
用于除默认 ISO 之外的日历系统的通用 API。
使用字段和单位以及日期时间调整器访问日期和时间。
-
TemporalAdjuster 在 java.time 中的用法
java.time 中实现 TemporalAdjuster 的类修饰符和类型类描述enum星期几,例如“星期二”。final class时间线上的一个瞬时点。final classISO-8601 日历系统中没有时区的日期,例如2007-12-03。final classISO-8601 日历系统中没有时区的日期时间,例如2007-12-03T10:15:30。final classISO-8601 日历系统中没有时区的时间,例如10:15:30。enum一年中的一个月,例如“七月”。final classISO-8601 日历系统中的月日,例如--12-03。final class在 ISO-8601 日历系统中与 UTC/Greenwich 有偏移的日期时间,例如2007-12-03T10:15:30+01:00。final class与 ISO-8601 日历系统中的 UTC/Greenwich 有偏移的时间,例如10:15:30+01:00。final classISO-8601 日历系统中的年份,例如2007。final classISO-8601 日历系统中的年月,例如2007-12。final class与格林威治/UTC 的时区偏移量,例如+02:00。java.time 中的方法,参数类型为 TemporalAdjuster修饰符和类型方法描述Instant.with(TemporalAdjuster adjuster) 返回此瞬间的调整副本。LocalDate.with(TemporalAdjuster adjuster) 返回此日期的调整副本。LocalDateTime.with(TemporalAdjuster adjuster) 返回此日期时间的调整副本。LocalTime.with(TemporalAdjuster adjuster) 返回此时间的调整副本。OffsetDateTime.with(TemporalAdjuster adjuster) 返回此日期时间的调整副本。OffsetTime.with(TemporalAdjuster adjuster) 返回此时间的调整副本。Year.with(TemporalAdjuster adjuster) 返回今年的调整副本。YearMonth.with(TemporalAdjuster adjuster) 返回今年-月份的调整副本。ZonedDateTime.with(TemporalAdjuster adjuster) 返回此日期时间的调整副本。 -
TemporalAdjuster 在 java.time.chrono 中的用法
java.time.chrono 中 TemporalAdjuster 的子接口修饰符和类型接口描述interface在任意时间顺序中没有时间或时区的日期,用于高级全球化用例。interfaceChronoLocalDateTime<D extends ChronoLocalDate>任意时间顺序中没有时区的日期时间,用于高级全球化用例。interface时间线时代。java.time.chrono 中实现 TemporalAdjuster 的类修饰符和类型类描述final classHijrah 日历系统中的日期。enumHijrah 日历系统中的一个纪元。enumISO 日历系统中的纪元。final class日本皇历系统中的日期。final class日本皇历系统中的一个纪元。final class民国历系统中的日期。enumMinguo历法系统中的一个纪元.final class泰国佛教日历系统中的日期。enum泰国佛历系统中的一个纪元。java.time.chrono 中的方法,参数类型为 TemporalAdjuster修饰符和类型方法描述default ChronoLocalDateChronoLocalDate.with(TemporalAdjuster adjuster) 返回与此对象具有相同类型并进行调整的调整对象。default ChronoLocalDateTime<D>ChronoLocalDateTime.with(TemporalAdjuster adjuster) 返回与此对象具有相同类型并进行调整的调整对象。default ChronoZonedDateTime<D>ChronoZonedDateTime.with(TemporalAdjuster adjuster) 返回与此对象具有相同类型并进行调整的调整对象。HijrahDate.with(TemporalAdjuster adjuster) 返回与此对象具有相同类型并进行调整的调整对象。JapaneseDate.with(TemporalAdjuster adjuster) 返回与此对象具有相同类型并进行调整的调整对象。MinguoDate.with(TemporalAdjuster adjuster) 返回与此对象具有相同类型并进行调整的调整对象。ThaiBuddhistDate.with(TemporalAdjuster adjuster) 返回与此对象具有相同类型并进行调整的调整对象。 -
TemporalAdjuster 在 java.time.temporal 中的用法
java.time.temporal 中返回 TemporalAdjuster 的方法修饰符和类型方法描述static TemporalAdjusterTemporalAdjusters.dayOfWeekInMonth(int ordinal, DayOfWeek dayOfWeek) 返回月份调整器中的星期几,它返回一个新日期,其中包含基于月份的星期几。static TemporalAdjusterTemporalAdjusters.firstDayOfMonth()返回“月的第一天”调整器,它返回设置为当月第一天的新日期。static TemporalAdjusterTemporalAdjusters.firstDayOfNextMonth()返回“下个月的第一天”调整器,它返回设置为下个月的第一天的新日期。static TemporalAdjusterTemporalAdjusters.firstDayOfNextYear()返回“明年第一天”调整器,它返回设置为明年第一天的新日期。static TemporalAdjusterTemporalAdjusters.firstDayOfYear()返回“一年的第一天”调整器,它返回设置为当年第一天的新日期。static TemporalAdjusterTemporalAdjusters.firstInMonth(DayOfWeek dayOfWeek) 返回第一个月份调整器,它返回与第一个匹配的星期几相同的月份中的新日期。static TemporalAdjusterTemporalAdjusters.lastDayOfMonth()返回“月的最后一天”调整器,它返回设置为当月最后一天的新日期。static TemporalAdjusterTemporalAdjusters.lastDayOfYear()返回“年的最后一天”调整器,它返回设置为当年最后一天的新日期。static TemporalAdjusterTemporalAdjusters.lastInMonth(DayOfWeek dayOfWeek) 返回最后一个月份调整器,它返回与最后一个匹配的星期几相同月份的新日期。static TemporalAdjuster返回下一个星期几调整器,它将日期调整为调整日期后指定星期几的第一次出现。static TemporalAdjusterTemporalAdjusters.nextOrSame(DayOfWeek dayOfWeek) 返回下一个或同一天的星期几调整器,它将日期调整为调整日期后指定星期几的第一次出现,除非它已经在那天,在这种情况下返回相同的对象.static TemporalAdjusterTemporalAdjusters.ofDateAdjuster(UnaryOperator<LocalDate> dateBasedAdjuster) 获得一个包装日期调整器的TemporalAdjuster。static TemporalAdjuster返回上一个星期调整器,它将日期调整为调整日期之前指定星期几的第一次出现。static TemporalAdjusterTemporalAdjusters.previousOrSame(DayOfWeek dayOfWeek) 返回先前或同一周调整器,它将日期调整为调整日期之前指定星期几的第一次出现,除非它已经在那天,在这种情况下返回相同的对象.java.time.temporal 中的方法,参数类型为 TemporalAdjuster