Worked example: 2000 through 2024 inclusive
- Example input
- Start 2000-01-01; end 2024-12-31.
- Example output
Seven leap days: 2000, 2004, 2008, 2012, 2016, 2020 and 2024-02-29.
How to interpret it
The year 2000 is included because century years remain leap years when divisible by 400. Both range endpoints include their dates.