Uses of Class
java.time.Month
-
Packages that use Month 软件包 描述 java.time 日期,时间,瞬间和持续时间的主要API。java.time.zone 支持时区及其规则。 -
-
Uses of Month in java.time
Methods in java.time that return Month Modifier and Type 方法 描述 Month
Month. firstMonthOfQuarter()
获得与本季度第一个月相对应的月份。static Month
Month. from(TemporalAccessor temporal)
从时间对象获取Month
的实例。Month
LocalDate. getMonth()
使用Month
枚举获取月份字段。Month
LocalDateTime. getMonth()
使用Month
枚举获取月份字段。Month
MonthDay. getMonth()
使用Month
枚举获取月份字段。Month
OffsetDateTime. getMonth()
使用Month
枚举获取月份字段。Month
YearMonth. getMonth()
使用Month
枚举获取月份字段。Month
ZonedDateTime. getMonth()
使用Month
枚举获取月份字段。Month
Month. minus(long months)
返回指定月份之前的月份。static Month
Month. of(int month)
从int
获得Month
的实例。Month
Month. plus(long months)
返回指定月份之后的月份。static Month
Month. valueOf(String name)
以指定的名称返回此类型的枚举常量。static Month[]
Month. values()
按照它们声明的顺序返回一个包含此枚举类型常量的数组。Methods in java.time with parameters of type Month Modifier and Type 方法 描述 YearMonth
Year. atMonth(Month month)
今年结合一个月创造一个YearMonth
。static LocalDate
LocalDate. of(int year, Month month, int dayOfMonth)
从一年,一个月和一天获取LocalDate
的实例。static LocalDateTime
LocalDateTime. of(int year, Month month, int dayOfMonth, int hour, int minute)
从年,月,日,小时和分钟获得LocalDateTime
的实例,将秒和纳秒设置为零。static LocalDateTime
LocalDateTime. of(int year, Month month, int dayOfMonth, int hour, int minute, int second)
从年,月,日,小时,分钟和秒获得LocalDateTime
的实例,将纳秒设置为零。static LocalDateTime
LocalDateTime. of(int year, Month month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond)
从年,月,日,时,分,秒,纳秒获取LocalDateTime
的实例。static MonthDay
MonthDay. of(Month month, int dayOfMonth)
获得MonthDay
的实例。static YearMonth
YearMonth. of(int year, Month month)
从一年和一个月获得YearMonth
的实例。MonthDay
MonthDay. with(Month month)
返回该MonthDay
的副本。 -
Uses of Month in java.time.zone
Methods in java.time.zone that return Month Modifier and Type 方法 描述 Month
ZoneOffsetTransitionRule. getMonth()
获得过渡的月份。Methods in java.time.zone with parameters of type Month Modifier and Type 方法 描述 static ZoneOffsetTransitionRule
ZoneOffsetTransitionRule. of(Month month, int dayOfMonthIndicator, DayOfWeek dayOfWeek, LocalTime time, boolean timeEndOfDay, ZoneOffsetTransitionRule.TimeDefinition timeDefnition, ZoneOffset standardOffset, ZoneOffset offsetBefore, ZoneOffset offsetAfter)
Obtains an instance defining the yearly rule to create transitions between two offsets.
-