Date: add property year

This commit is contained in:
Doug Blank 2016-05-09 07:58:45 -04:00
parent 79362d7086
commit 1a05aadca7

View File

@ -1942,6 +1942,8 @@ class Date(object):
self.dateval = tuple(dlist)
self._calc_sort_value()
year = property(get_year, set_year)
def Today():
"""
Returns a Date object set to the current date.