Skip to content

Commit 51ba1f0

Browse files
author
Richard Jones
committed
implement differenceDate ;)
1 parent 166a968 commit 51ba1f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roundup/date.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: date.py,v 1.64 2004-04-06 21:56:10 richard Exp $
18+
# $Id: date.py,v 1.65 2004-04-06 22:43:59 richard Exp $
1919

2020
"""Date, time and time interval handling.
2121
"""
@@ -266,6 +266,7 @@ def get_mdays(year, month):
266266

267267
def differenceDate(self, other):
268268
"Return the difference between this date and another date"
269+
return self - other
269270

270271
def applyInterval(self, interval):
271272
''' Apply the interval to this date

0 commit comments

Comments
 (0)