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

investigate arrow for storing datetimes #65

Open
geospatial-jeff opened this issue Feb 23, 2021 · 3 comments
Open

investigate arrow for storing datetimes #65

geospatial-jeff opened this issue Feb 23, 2021 · 3 comments

Comments

@geospatial-jeff
Copy link
Collaborator

geospatial-jeff commented Feb 23, 2021

arrow is an interesting library. It could give us a more generic datetime representation that would let us support all the flavors of RFC3339 without a lot of work. Need to know more about how it plays with FastAPI.

@geospatial-jeff
Copy link
Collaborator Author

It duck types datetime https://github.com/arrow-py/arrow/blob/master/arrow/arrow.py#L83-L84. This should work.

@geospatial-jeff
Copy link
Collaborator Author

geospatial-jeff commented Feb 25, 2021

pendulum looks interesting too https://github.com/sdispater/pendulum - thanks @kylebarron. Interesting that pendulum subclasses datetime while arrow duck types it.

@kylebarron
Copy link
Contributor

kylebarron commented Feb 25, 2021

I haven't looked too closely at either to understand the implications, but naively it seems like being able to call isinstance and use it like a datetime would be a plus.

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

No branches or pull requests

2 participants