软件包 | 描述 |
---|---|
java.time |
日期、时间、时刻主要的API,和持续时间。
|
java.time.zone |
支持时区及其规则。
|
Modifier and Type | Method and Description |
---|---|
Month |
Month.firstMonthOfQuarter()
获取对应于本季度第一个月的月份。
|
static Month |
Month.from(TemporalAccessor temporal)
获得
Month 实例从一个时空对象。
|
Month |
MonthDay.getMonth()
得到月年田间使用
Month 枚举。
|
Month |
OffsetDateTime.getMonth()
得到月年田间使用
Month 枚举。
|
Month |
LocalDate.getMonth()
得到月年田间使用
Month 枚举。
|
Month |
YearMonth.getMonth()
得到月年田间使用
Month 枚举。
|
Month |
LocalDateTime.getMonth()
得到月年田间使用
Month 枚举。
|
Month |
ZonedDateTime.getMonth()
得到月年田间使用
Month 枚举。
|
Month |
Month.minus(long months)
返回一年的月,是在这一个之前指定的数月。
|
static Month |
Month.of(int month)
获得
Month 实例从一个
int 价值。
|
Month |
Month.plus(long months)
返回一年的月,是指定数量的后,这一个。
|
static Month |
Month.valueOf(String name)
返回此类型具有指定名称的枚举常量。
|
static Month[] |
Month.values()
返回一个数组包含该枚举类型的常量,它们的顺序声明。
|
Modifier and Type | Method and Description |
---|---|
YearMonth |
Year.atMonth(Month month)
结合今年一个月创造一个
YearMonth 。
|
static YearMonth |
YearMonth.of(int year, 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 实例。
|
MonthDay |
MonthDay.with(Month month)
返回一份本
MonthDay 与月的年变化。
|
Modifier and Type | Method and Description |
---|---|
Month |
ZoneOffsetTransitionRule.getMonth()
获取过渡的月份。
|
Modifier and Type | Method and Description |
---|---|
static ZoneOffsetTransitionRule |
ZoneOffsetTransitionRule.of(Month month, int dayOfMonthIndicator, DayOfWeek dayOfWeek, LocalTime time, boolean timeEndOfDay, ZoneOffsetTransitionRule.TimeDefinition timeDefnition, ZoneOffset standardOffset, ZoneOffset offsetBefore, ZoneOffset offsetAfter)
获得一个定义年度规则的实例,以创建两个偏移之间的转换。
|
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.