Uses of Class
javax.time.calendar.YearMonth
Packages that use YearMonth
Package
Description
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
-
Uses of YearMonth in javax.time.calendar
Fields in javax.time.calendar with type parameters of type YearMonthModifier and TypeFieldDescriptionprivate static final CalendricalRule<YearMonth>
YearMonth.Rule.INSTANCE
Methods in javax.time.calendar that return YearMonthModifier and TypeMethodDescriptionYear.atMonth
(int monthOfYear) Returns a year-month formed from this year at the specified month.Year.atMonth
(MonthOfYear monthOfYear) Returns a year-month formed from this year at the specified month.protected YearMonth
YearMonth.Rule.derive
(Calendrical calendrical) YearMonth.minus
(PeriodProvider periodProvider) Returns a copy of thisYearMonth
with the specified period subtracted.YearMonth.minusMonths
(long months) Returns a copy of this YearMonth with the specified period in months subtracted.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
Obtains the current year-month from the specified clock.static YearMonth
YearMonth.of
(int year, int monthOfYear) Obtains an instance ofYearMonth
from a year and month.static YearMonth
YearMonth.of
(int year, MonthOfYear monthOfYear) Obtains an instance ofYearMonth
from a year and month.static YearMonth
YearMonth.of
(Calendrical calendrical) Obtains an instance ofYearMonth
from a Calendrical.static YearMonth
Obtains an instance ofYearMonth
from a text string such as2007-12
.static YearMonth
YearMonth.parse
(String text, DateTimeFormatter formatter) Obtains an instance ofYearMonth
from a text string using a specific formatter.YearMonth.plus
(PeriodProvider periodProvider) Returns a copy of thisYearMonth
with the specified period added.YearMonth.plusMonths
(long months) Returns a copy of this YearMonth with the specified period in months added.YearMonth.plusYears
(long years) Returns a copy of this YearMonth with the specified period in years added.YearMonth.rollMonthOfYear
(int months) Rolls the month-of-year, adding the specified number of months to a copy of thisYearMonth
.private YearMonth
YearMonth.with
(int newYear, MonthOfYear newMonth) Returns a copy of this year-month with the new year and month, checking to see if a new object is in fact required.YearMonth.with
(MonthOfYear monthOfYear) Returns a copy of this YearMonth with the month-of-year altered.Returns a copy of this YearMonth with the year altered.YearMonth.withMonthOfYear
(int monthOfYear) Returns a copy of thisYearMonth
with the month-of-year altered.YearMonth.withYear
(int year) Returns a copy of thisYearMonth
with the year altered.Clock.yearMonth()
Gets the current year-month.Methods in javax.time.calendar that return types with arguments of type YearMonthModifier and TypeMethodDescriptionstatic CalendricalRule<YearMonth>
YearMonth.rule()
Gets the rule for the year-month.Methods in javax.time.calendar with parameters of type YearMonthModifier and TypeMethodDescriptionint
Compares this year-month to another year-month.boolean
Is this year-month after the specified year-month.boolean
Is this year-month before the specified year-month.