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

Replace unit between functions with companion object methods #186

Merged
merged 2 commits into from
May 25, 2021

Conversation

erikc5000
Copy link
Owner

The global functions such as hoursBetween() have been moved to companion object extension methods like Hours.between() to reduce namespace pollution. This is a somewhat breaking change since daysBetween() no longer works with time points, but its behavior was iffy in the first place due to "day" ambiguity between types.

@erikc5000 erikc5000 merged commit 9a2e173 into master May 25, 2021
@erikc5000 erikc5000 deleted the duration-between-api branch May 25, 2021 11:25
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.

None yet

1 participant