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 YearMonthYearMonth.fromCalendarFields(Calendar calendar) Constructs a YearMonth from ajava.util.Calendarusing exactly the same field values avoiding any time zone effects.static YearMonthYearMonth.fromDateFields(Date date) Constructs a YearMonth from ajava.util.Dateusing 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 YearMonthYearMonth.now()Obtains aYearMonthset to the current system millisecond time usingISOChronologyin the default time zone.static YearMonthYearMonth.now(Chronology chronology) Obtains aYearMonthset to the current system millisecond time using the specified chronology.static YearMonthYearMonth.now(DateTimeZone zone) Obtains aYearMonthset to the current system millisecond time usingISOChronologyin the specified time zone.static YearMonthParses aYearMonthfrom the specified string.static YearMonthYearMonth.parse(String str, DateTimeFormatter formatter) Parses aYearMonthfrom 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.