2007-12-02 Douglas S.Blank <dblank@cs.brynmawr.edu>
* src/gen/lib/date.py: added new method copy_ymd() * src/plugins/CalculateEstimatedDates.py: new tool based on MenuOptions: calculates estimated dates * src/PluginUtils/_PluginWindows.py: refactoring, cleanup * po/POTFILES.in: renamed PluginStatus.py -> PluginWindows.py svn: r9438
This commit is contained in:
@@ -563,6 +563,14 @@ class Date:
|
||||
retval.set_yr_mon_day_offset(year, month, day)
|
||||
return retval
|
||||
|
||||
def copy_ymd(self, year=0, month=0, day=0):
|
||||
"""
|
||||
Returns a Date copy with year, month, and day set
|
||||
"""
|
||||
retval = Date(self)
|
||||
retval.set_yr_mon_day(year, month, day)
|
||||
return retval
|
||||
|
||||
def set_year(self, year):
|
||||
"""
|
||||
Sets the year value
|
||||
|
||||
Reference in New Issue
Block a user