Skip to content

fix: don't use f64 to calculate intervals#25

Merged
martinohmann merged 1 commit into
mainfrom
interval-while-loop
May 24, 2025
Merged

fix: don't use f64 to calculate intervals#25
martinohmann merged 1 commit into
mainfrom
interval-while-loop

Conversation

@martinohmann

Copy link
Copy Markdown
Owner

We now always add Spans, which ensures that we correctly deal with things like leap years and months of different length.

This also fixes a couple of bugs along the way. E.g. different logic for picking the closest datetime if there's an equal distance.

@martinohmann martinohmann force-pushed the interval-while-loop branch 2 times, most recently from 21b1906 to 15f24bf Compare May 24, 2025 08:22
We now always add `Span`s, which ensures that we correctly deal with
things like leap years and months of different length.

This also fixes a couple of bugs along the way. E.g. different logic for
picking the closest datetime if there's an equal distance.
@martinohmann martinohmann force-pushed the interval-while-loop branch from 15f24bf to 2b0e2e9 Compare May 24, 2025 08:30
@martinohmann martinohmann merged commit bb9701b into main May 24, 2025
4 checks passed
@martinohmann martinohmann deleted the interval-while-loop branch May 24, 2025 08:37
@github-actions github-actions Bot mentioned this pull request Jun 17, 2025
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