Started on Brazil's Valentine's Day 2024
- Input
- 2024-06-12 → 2026-12-01 12:00
- Expected output
- 902 d · 128 w · 2y 5m 19d
From 12/06/2024 to 12/11/2026 is exactly 2 years and 5 months, and from 12/11 to 01/12 is 19 days. The 128 weeks are 902 days divided by 7, discarding the remainder.
Started in February 2025
- Input
- 2025-02-14 → 2026-12-01 12:00
- Expected output
- 655 d · 93 w · 1y 9m 17d
From 14/02/2025 to 14/11/2026 is 21 months (1 year and 9 months), plus 17 days to 01/12. The day total does not depend on how many days each month has.
Start on January 31
- Input
- 2023-01-31 → 2026-12-01 12:00
- Expected output
- 1400 d
With a start on 31/01/2023, the first monthly anniversary lands on 28/02/2023 (February has no 31st). The day count is direct and does not need that adjustment.