2008/2/18, Douglas S. Blank <dblank@cs.brynmawr.edu>:

I've been working on some date math for this bug/feature:


This is useful for a few functions. One is for a date calculator inside
the Python interpreter in the gramplets:


so, for example, you can see how long someone lived:

> Date(1955, 9, 3) - Date(1922, 5, 7)
(33, 3, 27)  # (33 years, 3 months, and 27 days)

Peter asks the question:

"""Did you take into account the changeover from the Julian calender to
the Gregorian? This took place for most of the world by a decision by the
Pope 1583. However, Sweden waited until 1753 for this, so February, 18
1753 was followed by March, 1 1753."""

I know the relevant code is in src/gen/lib/calendar.py but I don't see
anything there that seems to deal with this specifically. Is there code in
GRAMPS that handles this gap? If not, do we want to? As Peter notes, it
would have to be handled by location and time.

Gregorian and Julian are calanders, you could use both today if you want. When a specific country switched from one to the other is not the issue. The user has to give up the correct calander in GRAMPS when entering a date, GRAMPS must not guess what date is entered based on the country you are in.


Any pointers appreciated,


This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
Gramps-devel mailing list