Initializer
Month(Integer integer)
Parameters:
  • integer

    Ordinal number of the month of year. Where:

    january = 1

    february = 2

    december = 12

Attributes
integerSource Codeshared Integer integer

Ordinal number of the month of year. Where:

january = 1

february = 2

december = 12

Inherited Attributes
Attributes inherited from: Object
Attributes inherited from: Ordinal<Other>
Methods
addSource Codeshared Overflow add(Integer numberOfMonths)

Adds number of months to this month and returns the result of as new month value and number of times the operation overflowed.

compareSource Codeshared actual Comparison compare(Month other)

Compares ordinal numbers of two instances of Month.

firstDayOfYearSource Codeshared default Integer firstDayOfYear(Boolean leapYear = false)

Returns the day of year value for first of this month.

Parameters:
  • leapYear = false
minusMonthsSource Codeshared Month minusMonths(Integer number)

Returns month of year that comes specified number of months before this month.

numberOfDaysSource Codeshared default Integer numberOfDays(Boolean leapYear = false)

Returns number of days in this month.

Parameters:
  • leapYear = false
plusMonthsSource Codeshared Month plusMonths(Integer number)

Returns month of year that comes specified number of months after this month.

Inherited Methods
Methods inherited from: Object
Methods inherited from: Comparable<Other>
Nested Classes
OverflowSource Codeshared Overflow

A result of adding or subtracting a month to another amount.