Added float field and fix in datetime field
This commit is contained in:
parent
ae5d76432e
commit
58619fe85c
2 changed files with 36 additions and 2 deletions
|
|
@ -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):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue