dh-tech / undate-python

A Python library for working with fuzzy, partial, or otherwise uncertain dates
Apache License 2.0
6 stars 1 forks source link

implemented converted date for dates from other calendars #10

Open rlskoeser opened 1 year ago

rlskoeser commented 1 year ago

preliminary support for calendar conversion:

proposed implementation:

notes & questions

robcast commented 1 year ago

For my ISMI data I do need to keep the information which calendar the date was entered in (see #17)

I am not sure if we need to save the date in the original calendar as long as it can be converted back from the Gregorian datetime. In my sample the Hijri dates are converted losslessly to Gregorian and back but the converted date notes that the Gregorian date may be off by up to 2 days (which doesn't matter if you just use the Hijri).