Java org.joda.time Months fields, constructors, methods, implement or subclass

Example usage for Java org.joda.time Months fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.joda.time Months.

The text is from its open source code.

Field

MonthsZERO
Constant representing zero months.
MonthsONE
Constant representing one month.
MonthsTHREE
Constant representing three months.
MonthsSIX
Constant representing six months.
MonthsTWELVE
Constant representing twelve months.

Constructor

Months(int months)
Creates a new instance representing a number of months.

Method

intgetMonths()
Gets the number of months that this period represents.
MonthsmonthsBetween(ReadableInstant start, ReadableInstant end)
Creates a Months representing the number of whole months between the two specified datetimes.
MonthsmonthsBetween(ReadablePartial start, ReadablePartial end)
Creates a Months representing the number of whole months between the two specified partial datetimes.
MonthsmonthsIn(ReadableInterval interval)
Creates a Months representing the number of whole months in the specified interval.
MonthsparseMonths(String periodStr)
Creates a new Months by parsing a string in the ISO8601 format 'PnM'.