* src/DateParser.py: try to detect illegal numerical dates

* src/Utils.py: not_too_old moved over from RelLib.py
* src/WriteGedcom.py: fix call to probably_alive


svn: r3618
This commit is contained in:
Don Allingham
2004-10-10 23:22:12 +00:00
parent 72024c566d
commit 8569738aa3
5 changed files with 37 additions and 9 deletions

View File

@ -2243,8 +2243,3 @@ class GenderStats:
return Person.unknown
def not_too_old(date):
time_struct = time.localtime(time.time())
current_year = time_struct[0]
year = date.get_year()
return not( year != 0 and current_year - year > 110)