Return type | Name and parameters |
---|---|
LocalDate
|
leftShift(int dayOfMonth)
Returns a LocalDate of this year/month and the given day of the month. |
YearMonth
|
minus(long months)
Returns a YearMonth that is months months before this year/month.
|
YearMonth
|
next()
Returns a YearMonth that is the month after this year/month. |
YearMonth
|
parse(CharSequence text, String pattern)
Parse text into a YearMonth using the provided pattern. |
YearMonth
|
plus(long months)
Returns a YearMonth that is months months after this year/month.
|
YearMonth
|
previous()
Returns a YearMonth that is the month before this year/month. |
Period
|
rightShift(YearMonth other)
Returns a Period of time between the first day of this year/month (inclusive) and the given YearMonth (exclusive). |
addShutdownHook
, any
, any
, asBoolean
, asType
, collect
, collect
, collect
, dump
, each
, eachMatch
, eachMatch
, eachWithIndex
, every
, every
, find
, find
, findAll
, findAll
, findIndexOf
, findIndexOf
, findIndexValues
, findIndexValues
, findLastIndexOf
, findLastIndexOf
, findResult
, findResult
, getAt
, getMetaClass
, getMetaPropertyValues
, getProperties
, grep
, grep
, hasProperty
, identity
, inject
, inject
, inspect
, invokeMethod
, is
, isCase
, isNotCase
, iterator
, metaClass
, print
, print
, printf
, printf
, println
, println
, println
, putAt
, respondsTo
, respondsTo
, setMetaClass
, split
, sprintf
, sprintf
, stream
, tap
, toString
, use
, use
, use
, with
, with
, withCloseable
, withStream
, withTraits
Returns a LocalDate of this year/month and the given day of the month.
dayOfMonth
- a day of the monthReturns a YearMonth that is months
months before this year/month.
months
- the number of months to subtractReturns a YearMonth that is the month after this year/month.
Parse text into a YearMonth using the provided pattern.
text
- String to be parsed to create the date instancepattern
- pattern used to parse the textReturns a YearMonth that is months
months after this year/month.
months
- the number of months to addReturns a YearMonth that is the month before this year/month.