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

Calculating BCE dates #15

Open
sati-bodhi opened this issue Jun 19, 2021 · 1 comment
Open

Calculating BCE dates #15

sati-bodhi opened this issue Jun 19, 2021 · 1 comment

Comments

@sati-bodhi
Copy link

Is there a way to do calculations, especially for BCE dates?

from flexidate import parse
fd = parse('2 BC')
int(fd.year)+2

Converting to integer would yield year 0. Seems like adopting the astronomical numbering for years before 1 AD is indeed the way to go as far as calculations are involved.

What is flexidate's approach to such issues?

@rufuspollock
Copy link
Member

This is a very good idea i.e.

from flexidate import parse
fd = parse('2 BC')
int(fd.year)+2

should yield: 1 and hence 2 BC should be -1.

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