Beispiel #1
0
 def now(**kwargs):
     return basedatetime.now() + relativedelta(**kwargs)
Beispiel #2
0
 def add(self, **kwargs):
     return self + relativedelta(**kwargs)
Beispiel #3
0
 def sub(self, **kwargs):
     return self - relativedelta(**kwargs)
Beispiel #4
0
 def now(**kwargs):
     ret = basedatetime.now() + relativedelta(**kwargs)
     return ret.time()
Beispiel #5
0
 def today(**kwargs):
     return basedate.today() + relativedelta(**kwargs)
Beispiel #6
0
 def now(**kwargs):
     ret = basedatetime.now() + relativedelta(**kwargs)
     if ret.date() == basedatetime.now().date():
         return ret.time()
     return ret
Beispiel #7
0
 def now(**kwargs):
     return basedatetime.now() + relativedelta(**kwargs)
Beispiel #8
0
 def today(**kwargs):
     return basedate.today() + relativedelta(**kwargs)
Beispiel #9
0
 def sub(self, **kwargs):
     return self - relativedelta(**kwargs)
Beispiel #10
0
 def add(self, **kwargs):
     return self + relativedelta(**kwargs)