Uses of Class
org.joda.time.Months

Packages that use Months
Package
Description
Provides support for dates, times, time zones, durations, intervals, and partials.
  • Uses of Months in org.joda.time

    Fields in org.joda.time declared as Months
    Modifier and Type
    Field
    Description
    static final Months
    Months.EIGHT
    Constant representing eight months.
    static final Months
    Months.ELEVEN
    Constant representing eleven months.
    static final Months
    Months.FIVE
    Constant representing five months.
    static final Months
    Months.FOUR
    Constant representing four months.
    static final Months
    Months.MAX_VALUE
    Constant representing the maximum number of months that can be stored in this object.
    static final Months
    Months.MIN_VALUE
    Constant representing the minimum number of months that can be stored in this object.
    static final Months
    Months.NINE
    Constant representing nine months.
    static final Months
    Months.ONE
    Constant representing one month.
    static final Months
    Months.SEVEN
    Constant representing seven months.
    static final Months
    Months.SIX
    Constant representing six months.
    static final Months
    Months.TEN
    Constant representing ten months.
    static final Months
    Months.THREE
    Constant representing three months.
    static final Months
    Months.TWELVE
    Constant representing twelve months.
    static final Months
    Months.TWO
    Constant representing two months.
    static final Months
    Months.ZERO
    Constant representing zero months.
    Methods in org.joda.time that return Months
    Modifier and Type
    Method
    Description
    Months.dividedBy(int divisor)
    Returns a new instance with the months divided by the specified divisor.
    Months.minus(int months)
    Returns a new instance with the specified number of months taken away.
    Months.minus(Months months)
    Returns a new instance with the specified number of months taken away.
    static Months
    Months.months(int months)
    Obtains an instance of Months that may be cached.
    static Months
    Creates a Months representing the number of whole months between the two specified datetimes.
    static Months
    Creates a Months representing the number of whole months between the two specified partial datetimes.
    static Months
    Months.monthsIn(ReadableInterval interval)
    Creates a Months representing the number of whole months in the specified interval.
    Months.multipliedBy(int scalar)
    Returns a new instance with the months multiplied by the specified scalar.
    Months.negated()
    Returns a new instance with the months value negated.
    static Months
    Months.parseMonths(String periodStr)
    Creates a new Months by parsing a string in the ISO8601 format 'PnM'.
    Months.plus(int months)
    Returns a new instance with the specified number of months added.
    Months.plus(Months months)
    Returns a new instance with the specified number of months added.
    Methods in org.joda.time with parameters of type Months
    Modifier and Type
    Method
    Description
    boolean
    Months.isGreaterThan(Months other)
    Is this months instance greater than the specified number of months.
    boolean
    Months.isLessThan(Months other)
    Is this months instance less than the specified number of months.
    Months.minus(Months months)
    Returns a new instance with the specified number of months taken away.
    Months.plus(Months months)
    Returns a new instance with the specified number of months added.