From 1a05aadca7f78f0ec34cda74c087e38bb15c2318 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Mon, 9 May 2016 07:58:45 -0400 Subject: [PATCH] Date: add property year --- gramps/gen/lib/date.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/gen/lib/date.py b/gramps/gen/lib/date.py index 5ca8df444..1a57fb064 100644 --- a/gramps/gen/lib/date.py +++ b/gramps/gen/lib/date.py @@ -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.