Skip to content

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