Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make more durations floorable and fix materialize #40

Merged
merged 1 commit into from
Jan 17, 2025
Merged

Conversation

vogievetsky
Copy link
Member

@vogievetsky vogievetsky commented Jan 17, 2025

This PR makes durations like P2D floorable by "assuming" that a month has 30 days. So that P2D would still floor the start of the month correctly.

Also fixes materialize to ceil the starting bound instead of flooring it which is wrong and expands the places where it can be used.

@jgoz jgoz merged commit 81f8796 into master Jan 17, 2025
1 check passed
@jgoz jgoz deleted the more_floorable branch January 17, 2025 23:08
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.

2 participants