Uses of Class
org.joda.time.YearMonth
Packages that use YearMonth
Package
Description
Provides support for dates, times, time zones, durations, intervals, and
partials.
-
Uses of YearMonth in org.joda.time
Methods in org.joda.time that return YearMonthModifier and TypeMethodDescriptionYearMonth.Property.addToCopy
(int valueToAdd) Adds to the value of this field in a copy of this YearMonth.YearMonth.Property.addWrapFieldToCopy
(int valueToAdd) Adds to the value of this field in a copy of this YearMonth wrapping within this field if the maximum value is reached.static YearMonth
YearMonth.fromCalendarFields
(Calendar calendar) Constructs a YearMonth from ajava.util.Calendar
using exactly the same field values avoiding any time zone effects.static YearMonth
YearMonth.fromDateFields
(Date date) Constructs a YearMonth from ajava.util.Date
using exactly the same field values avoiding any time zone effects.YearMonth.Property.getYearMonth()
Gets the partial that this property belongs to.YearMonth.minus
(ReadablePeriod period) Returns a copy of this year-month with the specified period taken away.YearMonth.minusMonths
(int months) Returns a copy of this year-month minus the specified number of months.YearMonth.minusYears
(int years) Returns a copy of this year-month minus the specified number of years.static YearMonth
YearMonth.now()
Obtains aYearMonth
set to the current system millisecond time usingISOChronology
in the default time zone.static YearMonth
YearMonth.now
(Chronology chronology) Obtains aYearMonth
set to the current system millisecond time using the specified chronology.static YearMonth
YearMonth.now
(DateTimeZone zone) Obtains aYearMonth
set to the current system millisecond time usingISOChronology
in the specified time zone.static YearMonth
Parses aYearMonth
from the specified string.static YearMonth
YearMonth.parse
(String str, DateTimeFormatter formatter) Parses aYearMonth
from the specified string using a formatter.YearMonth.plus
(ReadablePeriod period) Returns a copy of this year-month with the specified period added.YearMonth.plusMonths
(int months) Returns a copy of this year-month plus the specified number of months.YearMonth.plusYears
(int years) Returns a copy of this year-month plus the specified number of years.YearMonth.Property.setCopy
(int value) Sets this field in a copy of the YearMonth.Sets this field in a copy of the YearMonth to a parsed text value.Sets this field in a copy of the YearMonth to a parsed text value.YearMonth.withChronologyRetainFields
(Chronology newChronology) Returns a copy of this year-month with the specified chronology.YearMonth.withField
(DateTimeFieldType fieldType, int value) Returns a copy of this year-month with the specified field set to a new value.YearMonth.withFieldAdded
(DurationFieldType fieldType, int amount) Returns a copy of this year-month with the value of the specified field increased.YearMonth.withMonthOfYear
(int monthOfYear) Returns a copy of this year-month with the month of year field updated.YearMonth.withPeriodAdded
(ReadablePeriod period, int scalar) Returns a copy of this year-month with the specified period added.YearMonth.withYear
(int year) Returns a copy of this year-month with the year field updated.