|
Methods defined here:
- __init__(self, yy, mm=0, dd=0)
- Initialize the instance variables
Acceptable instantiation argument formats are:
Date(YYYY, MM, DD) or Date(YYYY, M, D) or Date("YYYY-MM-DD")
Behaviors for incorrect years, months, and days are undefined
- __repr__(self)
- Return a string representation of the object
- compare(self, date)
- Compare the Date object itself to another Date object date
- day_after(self, date)
- Returns a Date object of the day after the given date
- day_before(self, date)
- Return a Date object of the day before the given date
- leap_year(self)
- minus(self, integer)
- Return the result (a Date object) of subtracting
a date object from an integer (number of days)
- plus(self, integer)
- Return the result (a Date object) of adding
a date object to an integer (number of days)
- to_standard(self)
- Return a standard date format "MM DD, YYYY" of the object
- to_string(self)
- Return a string format "YYYY-MM-DD" of the object
Data and non-method functions defined here:
- __doc__ = None
- __module__ = 'thanh'
|