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

change warning for date before 1900-01-01 #554

Closed
wants to merge 1 commit into from

Conversation

cderv
Copy link

@cderv cderv commented Feb 17, 2019

This fixes #551. It is based on a research I made for investigating #547 so I find it useful to share, in case this correspond to how you would have it fixed it.

I have just added a specific warning for 1900-02-29 and a general one for dates before 1900-01-01 that do not exist in excel.

I wanted to add some test in test-dates.R but not sure how to do that for those date that do not exist in excel. It is also not easy because I am on an European Excel and it does not behave like english one. (If I open test_sheet("dates-leap-year-1900-xlsx.xlsx") in Excel, it does not behave as expected).

Please tell me if you think I can add some anyway.

@jennybc
Copy link
Member

jennybc commented Feb 17, 2019

Thanks! I have to set readxl aside for a while now, so that's why this will sit a while.

@jennybc jennybc closed this in 8cf3d1a Mar 18, 2022
@cderv cderv deleted the negative-date branch March 18, 2022 17:41
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.

read_excel triggers wrong warning for dates before 1899-12-30
2 participants