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 MonthsModifier and TypeFieldDescriptionstatic 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 MonthsModifier and TypeMethodDescriptionMonths.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.Returns a new instance with the specified number of months taken away.static Months
Months.months
(int months) Obtains an instance ofMonths
that may be cached.static Months
Months.monthsBetween
(ReadableInstant start, ReadableInstant end) Creates aMonths
representing the number of whole months between the two specified datetimes.static Months
Months.monthsBetween
(ReadablePartial start, ReadablePartial end) Creates aMonths
representing the number of whole months between the two specified partial datetimes.static Months
Months.monthsIn
(ReadableInterval interval) Creates aMonths
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 newMonths
by parsing a string in the ISO8601 format 'PnM'.Months.plus
(int months) Returns a new instance with the specified number of months added.Returns a new instance with the specified number of months added.Methods in org.joda.time with parameters of type MonthsModifier and TypeMethodDescriptionboolean
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.Returns a new instance with the specified number of months taken away.Returns a new instance with the specified number of months added.