2008-02-25 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/DateHandler/_DateParser.py: set year += 1 * src/gen/lib/date.py: removed slash-date fix * src/gen/lib/test/date_test.py: slash dates sort correctly svn: r10121
This commit is contained in:
@@ -922,13 +922,6 @@ class Date:
|
||||
"""
|
||||
if calendar == self.calendar:
|
||||
return
|
||||
if self.get_slash():
|
||||
if (self.calendar == Date.CAL_JULIAN and
|
||||
calendar == Date.CAL_GREGORIAN):
|
||||
self.set_year(self.get_year() + 1)
|
||||
elif (self.calendar == Date.CAL_GREGORIAN and
|
||||
calendar == Date.CAL_JULIAN):
|
||||
self.set_year(self.get_year() - 1)
|
||||
(year, month, day) = Date._calendar_change[calendar](self.sortval)
|
||||
if self.is_compound():
|
||||
ryear = max(self.dateval[Date._POS_RYR], 1)
|
||||
|
||||
Reference in New Issue
Block a user