PEP8 functions in helpers

This commit is contained in:
samwiseg00 2018-08-22 00:18:54 -04:00
parent 8228018dd0
commit 0b227dc69e

View file

@ -202,17 +202,22 @@ def convert_seconds_to_minutes(s):
def today():
today = datetime.date.today()
yyyymmdd = datetime.date.isoformat(today)
return yyyymmdd
def now():
now = datetime.datetime.now()
return now.strftime("%Y-%m-%d %H:%M:%S")
def utc_now_iso():
utcnow = datetime.datetime.utcnow()
return utcnow.isoformat()
def human_duration(s, sig='dhms'):
hd = ''