comparison roundup/date.py @ 1103:db787cef1385

handled some XXXs
author Richard Jones <richard@users.sourceforge.net>
date Tue, 10 Sep 2002 12:44:42 +0000
parents 854d45f8b745
children 08a13a84ed43
comparison
equal deleted inserted replaced
1102:d94bd5369456 1103:db787cef1385
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
18 # $Id: date.py,v 1.27 2002-09-10 01:27:13 richard Exp $ 18 # $Id: date.py,v 1.28 2002-09-10 12:44:42 richard Exp $
19 19
20 __doc__ = """ 20 __doc__ = """
21 Date, time and time interval handling. 21 Date, time and time interval handling.
22 """ 22 """
23 23
151 def __add__(self, interval): 151 def __add__(self, interval):
152 """Add an interval to this date to produce another date. 152 """Add an interval to this date to produce another date.
153 """ 153 """
154 return Date(self.addInterval(interval)) 154 return Date(self.addInterval(interval))
155 155
156 # XXX deviates from spec to allow subtraction of dates as well 156 # deviates from spec to allow subtraction of dates as well
157 def __sub__(self, other): 157 def __sub__(self, other):
158 """ Subtract: 158 """ Subtract:
159 1. an interval from this date to produce another date. 159 1. an interval from this date to produce another date.
160 2. a date from this date to produce an interval. 160 2. a date from this date to produce an interval.
161 """ 161 """

Roundup Issue Tracker: http://roundup-tracker.org/