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

Added support forDate position between 2 dates range (positionInRange) #694

Merged
merged 8 commits into from
Sep 15, 2020
Merged

Added support forDate position between 2 dates range (positionInRange) #694

merged 8 commits into from
Sep 15, 2020

Conversation

RomanPodymov
Copy link
Contributor

Hello.
Thank you for SwiftDate.
In this pull request I added a new function called positionInRange(date:and:) to Date and DateInRegion. This function returns a value between 0.0 and 1.0 that shows the position of current date between 2 other dates. It returns nil if current date is not between 2 passed dates.

@malcommac malcommac changed the title Date position between 2 other dates Added support forDate position between 2 dates range (positionInRange) Sep 15, 2020
@malcommac
Copy link
Owner

Thank you for your MR!

@malcommac malcommac added this to the 6.2.0 milestone Sep 15, 2020
@malcommac malcommac merged commit 1aad319 into malcommac:develop Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants