Code

implement differenceDate ;)
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 6 Apr 2004 22:43:59 +0000 (22:43 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 6 Apr 2004 22:43:59 +0000 (22:43 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2260 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/date.py

index 8d84c6ff505642f4faca7fd93f3e8e183b352d6b..3d096d7df4186cd85aa3d1f2c729f65e2db5f697 100644 (file)
@@ -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