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

Time conversion for rationals #435

Merged
merged 9 commits into from
Jul 11, 2022
Merged

Conversation

varsill
Copy link
Contributor

@varsill varsill commented Jul 8, 2022

This PR introduces function to convert desired number of time units (seconds, hours etc.) represented as a %Ratio structure.

@varsill varsill added the no-changelog This label has to be added if changes from the PR are not meant to be placed in the CHANGELOG.md label Jul 8, 2022
…d always explicitly call functions from Ratio module. Add tests checking the added functionality.Make credo happy ;)
…tions into round_to_<units>/1. Update the rest of code accordingly to that change
@varsill varsill removed the no-changelog This label has to be added if changes from the PR are not meant to be placed in the CHANGELOG.md label Jul 11, 2022
@varsill varsill marked this pull request as ready for review July 11, 2022 11:55
@varsill varsill requested a review from mat-hek as a code owner July 11, 2022 11:55
lib/membrane/time.ex Outdated Show resolved Hide resolved
lib/membrane/time.ex Outdated Show resolved Hide resolved
@varsill varsill requested a review from mat-hek July 11, 2022 13:02
@varsill varsill merged commit 7a4d8ca into master Jul 11, 2022
@varsill varsill deleted the time_conversion_for_rationals branch July 11, 2022 13:04
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