Package | Description |
---|---|
javax.time.calendar |
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
|
Modifier and Type | Method and Description |
---|---|
YearMonth |
Year.atMonth(int monthOfYear)
Returns a year-month formed from this year at the specified month.
|
YearMonth |
Year.atMonth(MonthOfYear monthOfYear)
Returns a year-month formed from this year at the specified month.
|
YearMonth |
YearMonth.minus(PeriodProvider periodProvider)
Returns a copy of this
YearMonth with the specified period subtracted. |
YearMonth |
YearMonth.minusMonths(long months)
Returns a copy of this YearMonth with the specified period in months subtracted.
|
YearMonth |
YearMonth.minusYears(long years)
Returns a copy of this YearMonth with the specified period in years subtracted.
|
static YearMonth |
YearMonth.now()
Obtains the current year-month from the system clock in the default time-zone.
|
static YearMonth |
YearMonth.now(Clock clock)
Obtains the current year-month from the specified clock.
|
static YearMonth |
YearMonth.of(Calendrical calendrical)
Obtains an instance of
YearMonth from a Calendrical. |
static YearMonth |
YearMonth.of(int year,
int monthOfYear)
Obtains an instance of
YearMonth from a year and month. |
static YearMonth |
YearMonth.of(int year,
MonthOfYear monthOfYear)
Obtains an instance of
YearMonth from a year and month. |
static YearMonth |
YearMonth.parse(String text)
Obtains an instance of
YearMonth from a text string such as 2007-12 . |
static YearMonth |
YearMonth.parse(String text,
DateTimeFormatter formatter)
Obtains an instance of
YearMonth from a text string using a specific formatter. |
YearMonth |
YearMonth.plus(PeriodProvider periodProvider)
Returns a copy of this
YearMonth with the specified period added. |
YearMonth |
YearMonth.plusMonths(long months)
Returns a copy of this YearMonth with the specified period in months added.
|
YearMonth |
YearMonth.plusYears(long years)
Returns a copy of this YearMonth with the specified period in years added.
|
YearMonth |
YearMonth.rollMonthOfYear(int months)
Rolls the month-of-year, adding the specified number of months to a copy
of this
YearMonth . |
YearMonth |
YearMonth.with(MonthOfYear monthOfYear)
Returns a copy of this YearMonth with the month-of-year altered.
|
YearMonth |
YearMonth.with(Year year)
Returns a copy of this YearMonth with the year altered.
|
YearMonth |
YearMonth.withMonthOfYear(int monthOfYear)
Returns a copy of this
YearMonth with the month-of-year altered. |
YearMonth |
YearMonth.withYear(int year)
Returns a copy of this
YearMonth with the year altered. |
YearMonth |
Clock.yearMonth()
Gets the current year-month.
|
Modifier and Type | Method and Description |
---|---|
static CalendricalRule<YearMonth> |
YearMonth.rule()
Gets the rule for the year-month.
|
Modifier and Type | Method and Description |
---|---|
int |
YearMonth.compareTo(YearMonth other)
Compares this year-month to another year-month.
|
boolean |
YearMonth.isAfter(YearMonth other)
Is this year-month after the specified year-month.
|
boolean |
YearMonth.isBefore(YearMonth other)
Is this year-month before the specified year-month.
|
Copyright © 2014. All rights reserved.