Static
Private
ENUMSObtains an instance of Month
from an number
value.
Month
is an enum representing the 12 months of the year.
This factory allows the enum to be obtained from the number
value.
The number
value follows the ISO-8601 standard, from 1 (January) to 12 (December).
the month-of-year, not null
DateTimeException if the month-of-year is invalid
the month-of-year to represent, from 1 (January) to 12 (December)
Static
minusReturns the month-of-year that is the specified number of months before this one.
The calculation rolls around the start of the year from January to December. The specified period may be negative.
This instance is immutable and unaffected by this method call.
the resulting month, not null
the months to subtract, positive or negative
the Month from where the subtraction is computed
Static
plusReturns the month-of-year that is the specified number of months after this one.
The calculation rolls around the end of the year from December to January. The specified period may be negative.
This instance is immutable and unaffected by this method call.
the resulting month, not null
the months to add, positive or negative
the Month from where the addition is computed
Static
valueGets the month-of-year number
value.
The values are numbered following the ISO-8601 standard, from 1 (January) to 12 (December).
the month-of-year, from 1 (January) to 12 (December)
Generated using TypeDoc
Private cache of all the constants.