Added to display age at death if dead, or current age if alive

svn: r11471
This commit is contained in:
Doug Blank
2008-12-14 14:52:54 +00:00
parent ab98ce5d88
commit 246f76621a
2 changed files with 35 additions and 4 deletions

View File

@@ -1140,4 +1140,12 @@ class Date:
"""
return self._get_low_item_valid(Date._POS_SL)
def Today():
"""
Returns a Date object set to the current date.
"""
import time
current_date = Date()
current_date.set_yr_mon_day(*time.localtime(time.time())[0:3])
return current_date