Skip to content

BUG: Correct datetime64 missing type overload for datetime.date #18640#18763

Merged
charris merged 1 commit intonumpy:maintenance/1.20.xfrom
BvB93:datetime
Apr 13, 2021
Merged

BUG: Correct datetime64 missing type overload for datetime.date #18640#18763
charris merged 1 commit intonumpy:maintenance/1.20.xfrom
BvB93:datetime

Conversation

@BvB93
Copy link
Copy Markdown
Member

@BvB93 BvB93 commented Apr 13, 2021

Backport of #18690.

The np.datetime64 can in fact take any object with the day, month and year properties (e.g. dt.date) and not just dt.datetime.

@BvB93 BvB93 added this to the 1.20.3 release milestone Apr 13, 2021
@charris charris merged commit 9501d2b into numpy:maintenance/1.20.x Apr 13, 2021
@charris
Copy link
Copy Markdown
Member

charris commented Apr 13, 2021

Thanks Bas.

@BvB93 BvB93 deleted the datetime branch April 13, 2021 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants