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

Implement DATEDIF function #1551

Merged
merged 2 commits into from
Dec 16, 2020
Merged

Implement DATEDIF function #1551

merged 2 commits into from
Dec 16, 2020

Conversation

ming-me
Copy link
Contributor

@ming-me ming-me commented Nov 2, 2020

Implement DATEDIF function for calculate difference between two dates.
MS specs: https://support.microsoft.com/en-us/office/datedif-function-25dba1a4-2812-480b-84dd-8b32a451b35c

@igitur igitur requested a review from Pankraty November 20, 2020 09:56
@igitur igitur added this to the 0.95.4 milestone Nov 20, 2020
@igitur igitur added the enhancement Feature already exists, but should be enahanced. label Nov 20, 2020
@igitur
Copy link
Member

igitur commented Nov 20, 2020

I refactored the method. There were some edge cases that weren't calculated correctly.

Copy link
Member

@Pankraty Pankraty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not all edge cases have been covered, apparently

@igitur
Copy link
Member

igitur commented Nov 23, 2020

I'll squash and rebase after final approval.

Co-authored-by: Aleksei <pankraty@gmail.com>
@igitur
Copy link
Member

igitur commented Nov 23, 2020

Now I understand why Microsoft discourages use of this function ;-)

@igitur igitur merged commit 20c6acf into ClosedXML:develop Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature already exists, but should be enahanced.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants