closeio/ciso8601

Support for BC dates?

Opened this issue · 2 comments

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

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

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

So probably not.

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.