Consolidate all definitions of probably_alive() into one.

svn: r623
This commit is contained in:
David Hampton
2001-12-16 02:58:02 +00:00
parent 87e22d7fac
commit 6070457960
5 changed files with 28 additions and 74 deletions

View File

@@ -22,6 +22,7 @@
from re import IGNORECASE, compile
import string
import time
from Calendar import *
from intl import gettext
@@ -962,6 +963,18 @@ class SingleDate:
self.month = m-1
self.day = d
#-------------------------------------------------------------------------
#
#
#
#-------------------------------------------------------------------------
def not_too_old(date):
time_struct = time.localtime(time.time())
current_year = time_struct[0]
if date.year != UNDEF and current_year - date.year > 110:
return 0
return 1
#-------------------------------------------------------------------------
#
#