Skip to content

POC: Fliegel-Van-Flandern addition - #393

Closed
Joshix-1 wants to merge 11 commits into
printfn:mainfrom
Joshix-1:fliegel-van-flandern-addition
Closed

POC: Fliegel-Van-Flandern addition#393
Joshix-1 wants to merge 11 commits into
printfn:mainfrom
Joshix-1:fliegel-van-flandern-addition

Conversation

@Joshix-1

Copy link
Copy Markdown

Changes

Builds on top of #392

Adds smart date addition/subtraction using a fancy algorithm


Checklist

  • I used LLMs or similar AI tools when creating this pull request

Joshix-1 added 11 commits August 4, 2026 18:00
- Improve speed for both when adding many years worth of days/weeks
- Date.add now works with the same units Date.sub supports
- Prevent Year.prev and Year.next from wrapping around or panicing
- fix panic/overflow when subbing too many years ("@1970-01-01 - (2^63) years" was 1970-01-01)
- add some more tests
@Joshix-1

Copy link
Copy Markdown
Author

Integer overflows break this. Panics in debug mode. Will maybe revisit this in the future.

@Joshix-1 Joshix-1 closed this Aug 12, 2026
@Joshix-1 Joshix-1 changed the title POC: Fliegel van flandern addition POC: Fliegel-Van-Flandern addition Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant