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

Support for BC dates? #156

Open
javiabellan opened this issue Oct 23, 2024 · 2 comments
Open

Support for BC dates? #156

javiabellan opened this issue Oct 23, 2024 · 2 comments

Comments

@javiabellan
Copy link

Are BC dates supported?

I try to

ciso8601.parse_datetime('-0399-01-01')
ciso8601.parse_datetime('0399-01-01 BC')

but those give me errors

@movermeyer
Copy link
Collaborator

Python's Date times do not support BCE dates by default.

https://docs.python.org/3/library/datetime.html

So probably not.

@movermeyer
Copy link
Collaborator

movermeyer commented Oct 23, 2024

We could give better error messages for the first case 👍 good idea.

FWIW, the latter is not valid ISO 8601, so there won't be a better error message for that.

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