Added float field and fix in datetime field

This commit is contained in:
Antonio de la Rosa 2016-01-11 04:24:06 +01:00
parent ae5d76432e
commit 58619fe85c
2 changed files with 36 additions and 2 deletions

View file

@ -131,11 +131,17 @@ def checkdatetime(y, m, d, h, mi, s):
# Obtain the actual time in gmt
def now():
def now(gmt=False):
actual=datetime.today()
return actual.strftime(sql_format_time)
final_date=actual.strftime(sql_format_time)
if gmt:
final_date=local_to_gmt(final_date)
return final_date
def obtain_timestamp(timeform):