Package | Description |
---|---|
org.joda.time |
Provides support for dates, times, time zones, durations, intervals, and
partials.
|
Modifier and Type | Field and Description |
---|---|
static Months |
Months.EIGHT
Constant representing eight months.
|
static Months |
Months.ELEVEN
Constant representing eleven months.
|
static Months |
Months.FIVE
Constant representing five months.
|
static Months |
Months.FOUR
Constant representing four months.
|
static Months |
Months.MAX_VALUE
Constant representing the maximum number of months that can be stored in this object.
|
static Months |
Months.MIN_VALUE
Constant representing the minimum number of months that can be stored in this object.
|
static Months |
Months.NINE
Constant representing nine months.
|
static Months |
Months.ONE
Constant representing one month.
|
static Months |
Months.SEVEN
Constant representing seven months.
|
static Months |
Months.SIX
Constant representing six months.
|
static Months |
Months.TEN
Constant representing ten months.
|
static Months |
Months.THREE
Constant representing three months.
|
static Months |
Months.TWELVE
Constant representing twelve months.
|
static Months |
Months.TWO
Constant representing two months.
|
static Months |
Months.ZERO
Constant representing zero months.
|
Modifier and Type | Method and Description |
---|---|
Months |
Months.dividedBy(int divisor)
Returns a new instance with the months divided by the specified divisor.
|
Months |
Months.minus(int months)
Returns a new instance with the specified number of months taken away.
|
Months |
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 |
Months.monthsBetween(ReadableInstant start,
ReadableInstant end)
Creates a
Months representing the number of whole months
between the two specified datetimes. |
static Months |
Months.monthsBetween(ReadablePartial start,
ReadablePartial end)
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 |
Months.multipliedBy(int scalar)
Returns a new instance with the months multiplied by the specified scalar.
|
Months |
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 |
Months.plus(int months)
Returns a new instance with the specified number of months added.
|
Months |
Months.plus(Months months)
Returns a new instance with the specified number of months added.
|
Modifier and Type | Method and 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 |
Months.minus(Months months)
Returns a new instance with the specified number of months taken away.
|
Months |
Months.plus(Months months)
Returns a new instance with the specified number of months added.
|
Copyright © 2002–2024 Joda.org. All rights reserved.