conv_bal
parent
2076d92d22
commit
287ef807f3
|
@ -75,14 +75,12 @@ class Visit(Model):
|
||||||
def _get_time_start(self,context={}):
|
def _get_time_start(self,context={}):
|
||||||
now=datetime.now()
|
now=datetime.now()
|
||||||
starttime=now.strftime("%Y-%m-%d %H:%M:%S")
|
starttime=now.strftime("%Y-%m-%d %H:%M:%S")
|
||||||
print(":>> ", starttime)
|
|
||||||
return starttime
|
return starttime
|
||||||
|
|
||||||
def _get_time_stop(self,context={}):
|
def _get_time_stop(self,context={}):
|
||||||
hr=timedelta(seconds=3600)
|
hr=timedelta(seconds=3600)
|
||||||
now=datetime.now()
|
now=datetime.now()
|
||||||
stoptime=(now+hr).strftime("%Y-%m-%d %H:%M:%S")
|
stoptime=(now+hr).strftime("%Y-%m-%d %H:%M:%S")
|
||||||
print('::: ', stoptime)
|
|
||||||
return stoptime
|
return stoptime
|
||||||
|
|
||||||
_defaults={
|
_defaults={
|
||||||
|
|
Loading…
Reference in New Issue