Example usage for Java org.joda.time YearMonthDay fields, constructors, methods, implement or subclass
The text is from its open source code.
YearMonthDay() Constructs a YearMonthDay with the current date, using ISOChronology in the default zone to extract the fields. | |
YearMonthDay(DateTimeZone zone) Constructs a YearMonthDay with the current date, using ISOChronology in the specified zone to extract the fields. | |
YearMonthDay(Chronology chronology) Constructs a YearMonthDay with the current date, using the specified chronology and zone to extract the fields. | |
YearMonthDay(long instant) Constructs a YearMonthDay extracting the partial fields from the specified milliseconds using the ISOChronology in the default zone. | |
YearMonthDay(Object instant) Constructs a YearMonthDay from an Object that represents a time. | |
YearMonthDay(int year, int monthOfYear, int dayOfMonth) Constructs a YearMonthDay with specified time field values using ISOChronology in the default zone. |
int | compareTo(ReadablePartial other) Compares this partial with another returning an integer indicating the order. |
boolean | equals(Object partial) Compares this ReadablePartial with another returning true if the chronology, field types and values are equal. |
YearMonthDay | fromCalendarFields(Calendar calendar) Constructs a YearMonthDay from a java.util.Calendar using exactly the same field values avoiding any time zone effects. |
YearMonthDay | fromDateFields(Date date) Constructs a YearMonthDay from a java.util.Date using exactly the same field values avoiding any time zone effects. |
int | get(DateTimeFieldType type) Get the value of one of the fields of a datetime. |
int | getDayOfMonth() Get the day of month field value. |
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. |
YearMonthDay | minusDays(int days) Returns a copy of this date minus the specified number of days. |
YearMonthDay | minusMonths(int months) Returns a copy of this date minus the specified number of months. |
YearMonthDay | minusYears(int years) Returns a copy of this date minus the specified number of years. |
Property | monthOfYear() Get the month of year field property which provides access to advanced functionality. |
YearMonthDay | plusDays(int days) Returns a copy of this date plus the specified number of days. |
YearMonthDay | plusMonths(int months) Returns a copy of this date plus the specified number of months. |
YearMonthDay | plusYears(int years) Returns a copy of this date plus the specified number of years. |
DateMidnight | toDateMidnight() Converts this object to a DateMidnight in the default time zone. |
DateTime | toDateTime(TimeOfDay time) Converts this object to a DateTime using a TimeOfDay to fill in the missing fields and using the default time zone. |
DateTime | toDateTimeAtCurrentTime() Converts this partial to a full datetime using the default time zone setting the date fields from this instance and the time fields from the current time. |
DateTime | toDateTimeAtMidnight() Converts this YearMonthDay to a full datetime at midnight using the default time zone. |
LocalDate | toLocalDate() Converts this object to a LocalDate with the same date and chronology. |
String | toString() Output the date in the ISO8601 format YYYY-MM-DD. |
String | toString(String pattern) Output the date using the specified format pattern. |
YearMonthDay | withDayOfMonth(int dayOfMonth) Returns a copy of this date with the day of month field updated. |