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

    Classes in javax.time.calendar that implement interfaces with type arguments of type YearMonth
    Modifier and Type
    Class
    Description
    final class 
    A year-month in the ISO-8601 calendar system, such as 2007-12.
    Methods in javax.time.calendar that return YearMonth
    Modifier and Type
    Method
    Description
    Year.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.
    YearMonth.minus(PeriodProvider periodProvider)
    Returns a copy of this YearMonth 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
    YearMonth.now(Clock clock)
    Obtains the current year-month from the specified clock.
    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.of(Calendrical calendrical)
    Obtains an instance of YearMonth from a Calendrical.
    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.plus(PeriodProvider periodProvider)
    Returns a copy of this YearMonth 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 this YearMonth.
    YearMonth.with(MonthOfYear monthOfYear)
    Returns a copy of this YearMonth with the month-of-year altered.
    YearMonth.with(Year year)
    Returns a copy of this YearMonth with the year altered.
    YearMonth.withMonthOfYear(int monthOfYear)
    Returns a copy of this YearMonth with the month-of-year altered.
    YearMonth.withYear(int year)
    Returns a copy of this YearMonth with the year altered.
    Clock.yearMonth()
    Gets the current year-month.
    Methods in javax.time.calendar that return types with arguments of type YearMonth
    Modifier and Type
    Method
    Description
    YearMonth.rule()
    Gets the rule for the year-month.
    Methods in javax.time.calendar with parameters of type YearMonth
    Modifier and Type
    Method
    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.