from datetime import date import math class Date: # Constructor def __init__(self, m, d, y): self.month = m self.day = d self.year = y def leap_year(self): return ((self.year%4 == 0) and not (self.year%100 == 0 and self.year%400 != 0)) # To implement this class method, you can use Python's datetime package @classmethod def today(cls): pass # https://en.wikipedia.org/wiki/Determination_of_the_day_of_the_week # Gauss - disparate variation # returns day of week as a String ("Sunday", "Monday", ...) def day_of_weekS(self): pass # returns day of week as a number (0 for "Sunday", 1 for "Monday", ...) def day_of_weekN(self): pass # Returns the Date object one day after self def tomorrow(self): pass # Returns the Date object obtained by adding ndays to self def add(self,ndays): pass # Returns True if self is after d def after(self,d): pass # Returns True if self is same as d def equals(self,d): pass # Returns True if self is before d def before(self,d): pass # Returns the number of days between self and d def days_between(self,d): pass # Please look at part 2 of assignment for string format def __str__(self): pass