Example usage for Java org.joda.time YearMonth fields, constructors, methods, implement or subclass
The text is from its open source code.
YearMonth(DateTimeZone zone) Constructs a YearMonth with the current year-month, using ISOChronology in the specified zone to extract the fields. | |
YearMonth(Chronology chronology) Constructs a YearMonth with the current year-month, using the specified chronology and zone to extract the fields. | |
YearMonth(long instant) Constructs a YearMonth extracting the partial fields from the specified milliseconds using the ISOChronology in the default zone. | |
YearMonth(Object instant) Constructs a YearMonth from an Object that represents some form of time. | |
YearMonth(long instant, Chronology chronology) Constructs a YearMonth extracting the partial fields from the specified milliseconds using the chronology provided. | |
YearMonth(Object instant, Chronology chronology) Constructs a YearMonth from an Object that represents some form of time, using the specified chronology. | |
YearMonth(int year, int monthOfYear) Constructs a YearMonth with specified year and month using ISOChronology . | |
YearMonth(YearMonth partial, int[] values) Constructs a YearMonth with chronology from this instance and new values. | |
YearMonth(YearMonth partial, Chronology chrono) Constructs a YearMonth with values from this instance and a new chronology. |
boolean | equals(Object partial) Compares this ReadablePartial with another returning true if the chronology, field types and values are equal. |
YearMonth | fromDateFields(Date date) Constructs a YearMonth from a java.util.Date using exactly the same field values avoiding any time zone effects. |
int | getMonthOfYear() Get the month of year field value. |
int | getYear() Get the year field value. |
boolean | isAfter(ReadablePartial partial) Is this partial later than the specified partial. |
boolean | isBefore(ReadablePartial partial) Is this partial earlier than the specified partial. |
boolean | isEqual(ReadablePartial partial) Is this partial the same as the specified partial. |
YearMonth | minusMonths(int months) Returns a copy of this year-month minus the specified number of months. |
YearMonth | now(DateTimeZone zone) Obtains a YearMonth set to the current system millisecond time using ISOChronology in the specified time zone. |
YearMonth | now(Chronology chronology) Obtains a YearMonth set to the current system millisecond time using the specified chronology. |
YearMonth | now() Obtains a YearMonth set to the current system millisecond time using ISOChronology in the default time zone. |
YearMonth | parse(String str, DateTimeFormatter formatter) Parses a YearMonth from the specified string using a formatter. |
YearMonth | parse(String str) Parses a YearMonth from the specified string. |
YearMonth | plusMonths(int months) Returns a copy of this year-month plus the specified number of months. |
Interval | toInterval() Converts this object to an Interval representing the whole month. |
LocalDate | toLocalDate(int dayOfMonth) Converts this object to a LocalDate with the same year-month and chronology. |
String | toString() Output the year-month in ISO8601 format (yyyy-MM). |
String | toString(String pattern, Locale locale) Output the year-month using the specified format pattern. |