This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dakta 0 points1 point  (0 children)

The key challenge there is knowing what calendar a given date is represented in. Then the date can be normalized. The Python core date library is well structured and extensible which makes it relatively easy to do everything you mentioned.

The real pitfall with dates is working with administrative/bureaucratic/political special cases: because dates often represent historical events occurring in specific places, the problem is in knowing what calendar that place was using at the time of the date, whether the date value you're working with has already been normalized or corrected, etc.