Returns a copy of this LocalDateTime with the specified number of weeks subtracted.
This method subtracts the specified amount in weeks from the days field decrementing the month and year fields as necessary to ensure the result remains valid. The result is only invalid if the maximum/minimum year is exceeded.
For example, 2009-01-07 minus one week would result in 2008-12-31.
This instance is immutable and unaffected by this method call.
weeks | the weeks to subtract, may be negative |
LocalDateTime based on this date-time with the weeks subtracted, not null
DateTimeException | if the result exceeds the supported date range |
Diagram: LocalDateTime