Added new fucntion to datetime library

This commit is contained in:
Antonio de la Rosa 2016-01-10 04:02:28 +01:00
parent f63765c066
commit ae5d76432e
2 changed files with 10 additions and 0 deletions

View file

@ -129,6 +129,13 @@ def checkdatetime(y, m, d, h, mi, s):
except:
return False
# Obtain the actual time in gmt
def now():
actual=datetime.today()
return actual.strftime(sql_format_time)
def obtain_timestamp(timeform):