This instance is immutable and unaffected by this method call. @param month the month-of-year to set in the result, from 1 (January) to 12 (December) @return a {@code LocalDate} based on this date with the requested month, not null @throws DateTimeException if the month-of-year value is invalid
This returns a month-day with the specified month. If the day-of-month is invalid for the specified month, the day will be adjusted to the last valid day-of-month.
This instance is immutable and unaffected by this method call. @param month the month-of-year to set in the returned month-day, from 1 (January) to 12 (December) @return a {@code MonthDay} based on this month-day with the requested month, not null @throws DateTimeException if the month-of-year value is invalid
This instance is immutable and unaffected by this method call. @param month the month-of-year to set in the returned year-month, from 1 (January) to 12 (December) @return a {@code YearMonth} based on this year-month with the requested month, not null @throws DateTimeException if the month-of-year value is invalid
This operates on the local time-line, {@link LocalDateTime#withMonth(int) changing the month} of the local date-time.This is then converted back to a {@code ZonedDateTime}, using the zone ID to obtain the offset.
When converting back to {@code ZonedDateTime}, if the local date-time is in an overlap, then the offset will be retained if possible, otherwise the earlier offset will be used. If in a gap, the local date-time will be adjusted forward by the length of the gap.
This instance is immutable and unaffected by this method call. @param month the month-of-year to set in the result, from 1 (January) to 12 (December) @return a {@code ZonedDateTime} based on this date-time with the requested month, not null @throws DateTimeException if the month-of-year value is invalid
|
|
|
|
|
|
|
|
|
|
|
|
|
|