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 MonthsMonths.EIGHTConstant representing eight months.static final MonthsMonths.ELEVENConstant representing eleven months.static final MonthsMonths.FIVEConstant representing five months.static final MonthsMonths.FOURConstant representing four months.static final MonthsMonths.MAX_VALUEConstant representing the maximum number of months that can be stored in this object.static final MonthsMonths.MIN_VALUEConstant representing the minimum number of months that can be stored in this object.static final MonthsMonths.NINEConstant representing nine months.static final MonthsMonths.ONEConstant representing one month.static final MonthsMonths.SEVENConstant representing seven months.static final MonthsMonths.SIXConstant representing six months.static final MonthsMonths.TENConstant representing ten months.static final MonthsMonths.THREEConstant representing three months.static final MonthsMonths.TWELVEConstant representing twelve months.static final MonthsMonths.TWOConstant representing two months.static final MonthsMonths.ZEROConstant 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 MonthsMonths.months(int months) Obtains an instance ofMonthsthat may be cached.static MonthsMonths.monthsBetween(ReadableInstant start, ReadableInstant end) Creates aMonthsrepresenting the number of whole months between the two specified datetimes.static MonthsMonths.monthsBetween(ReadablePartial start, ReadablePartial end) Creates aMonthsrepresenting the number of whole months between the two specified partial datetimes.static MonthsMonths.monthsIn(ReadableInterval interval) Creates aMonthsrepresenting 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 MonthsMonths.parseMonths(String periodStr) Creates a newMonthsby 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 TypeMethodDescriptionbooleanMonths.isGreaterThan(Months other) Is this months instance greater than the specified number of months.booleanMonths.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.