Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 def __init__(self):
     datetime.__init__(self)
Exemplo n.º 4
0
 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 = []
Exemplo n.º 5
0
 def __init__(self, *args, **kwargs):
     datetime.__init__(*args, **kwargs)
     self.quarter = (self.month - 1) // 3 + 1
Exemplo n.º 6
0
 def __init__(self, *args, **kwargs):
     datetime.__init__(self, *args, **kwargs)
     self.__eq__ = ElementComparison(self, datetime, False)
     self.__ne__ = ElementComparison(self, datetime, True)