Update helpers.now function

This commit is contained in:
JonnyWong16 2020-08-02 13:48:10 -07:00
parent 9baecb0a41
commit f582f781f3
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
3 changed files with 13 additions and 12 deletions

View file

@ -213,9 +213,10 @@ def today():
return yyyymmdd
def now():
def now(no_sep=False):
now = datetime.datetime.now()
if no_sep:
return now.strftime("%Y%m%d%H%M%S")
return now.strftime("%Y-%m-%d %H:%M:%S")