Skip to content

Deprecate fractional days for Date - #201

Merged
jeremyevans merged 1 commit into
ruby:masterfrom
jeremyevans:deprecate-fractional-days
Nov 14, 2026
Merged

jeremyevans merged 1 commit into
ruby:masterfrom
jeremyevans:deprecate-fractional-days

Conversation

@jeremyevans

Copy link
Copy Markdown
Contributor

Keep allowing fractional days for DateTime.

Date's implementation of fractional days doesn't make sense, respecting them in + and - but truncating them in the constructors. It probably stems from historical behavior where Date and DateTime shared an implementation, as opposed to a deliberate decision made during the original design.

Keep allowing fractional days for DateTime.

Date's implementation of fractional days doesn't make sense, respecting
them in + and - but truncating them in the constructors. It probably
stems from historical behavior where Date and DateTime shared an
implementation, as opposed to a deliberate decision made during the
original design.
@jeremyevans
jeremyevans merged commit 2c48b11 into ruby:master Nov 14, 2026
30 checks passed
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