conv_bal
watcha.h 2014-12-06 10:10:08 +07:00
parent 2076d92d22
commit 287ef807f3
1 changed files with 0 additions and 2 deletions

View File

@ -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={