def __init__(self, **kwargs): year = kwargs.get('year') month = kwargs.get('month') day = kwargs.get('day') hour = kwargs.get('hour') minute = kwargs.get('minute') second = kwargs.get('second') microsecond = kwargs.get('microsecond') tzinfo = kwargs.get('tzinfo', None) datetime.__init__(self, year, month, day, hour, minute, second, microsecond, tzinfo)
def __init__(self): datetime.__init__(self)
def __init__(self, pub_time): year = pub_time.year month = pub_time.month day = pub_time.day datetime.__init__(self, year, month, day) self.post = []
def __init__(self, *args, **kwargs): datetime.__init__(*args, **kwargs) self.quarter = (self.month - 1) // 3 + 1
def __init__(self, *args, **kwargs): datetime.__init__(self, *args, **kwargs) self.__eq__ = ElementComparison(self, datetime, False) self.__ne__ = ElementComparison(self, datetime, True)