DateTime is immutable, so there are no set methods. Instead, this method returns a new instance with the value of day of month changed. @param dayOfMonth the day of month to set @return a copy of this object with the field set @throws IllegalArgumentException if the value is invalid @since 1.3
LocalDate is immutable, so there are no set methods. Instead, this method returns a new instance with the value of day of month changed. @param dayOfMonth the day of month to set @return a copy of this object with the field set @throws IllegalArgumentException if the value is invalid
YearMonthDay is immutable, so there are no set methods. Instead, this method returns a new instance with the value of day of month changed. @param dayOfMonth the day of month to set @return a copy of this object with the field set @throws IllegalArgumentException if the value is invalid @since 1.3
This instance is immutable and unaffected by this method call. @param dayOfMonth the day-of-month to set in the result, from 1 to 28-31 @return a {@code LocalDateTime} based on this date-time with the requested day, not null @throws DateTimeException if the day-of-month value is invalid @throws DateTimeException if the day-of-month is invalid for the month-year
This returns a month-day with the specified day-of-month. If the day-of-month is invalid for the month, an exception is thrown.
This instance is immutable and unaffected by this method call. @param dayOfMonth the day-of-month to set in the return month-day, from 1 to 31 @return a {@code MonthDay} based on this month-day with the requested day, not null @throws DateTimeException if the day-of-month value is invalid @throws DateTimeException if the day-of-month is invalid for the month
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|