From 193f52e600070699b4f08912d6a8ca60015e53e5 Mon Sep 17 00:00:00 2001 From: richard Date: Tue, 6 Apr 2004 22:43:59 +0000 Subject: [PATCH] implement differenceDate ;) git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2260 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/date.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roundup/date.py b/roundup/date.py index 8d84c6f..3d096d7 100644 --- a/roundup/date.py +++ b/roundup/date.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: date.py,v 1.64 2004-04-06 21:56:10 richard Exp $ +# $Id: date.py,v 1.65 2004-04-06 22:43:59 richard Exp $ """Date, time and time interval handling. """ @@ -266,6 +266,7 @@ class Date: def differenceDate(self, other): "Return the difference between this date and another date" + return self - other def applyInterval(self, interval): ''' Apply the interval to this date -- 2.30.2