Add air date to tables for non-episodic Live TV

This commit is contained in:
JonnyWong16 2020-02-17 13:37:58 -08:00
parent 7ecc075c7e
commit 441e39d776
13 changed files with 73 additions and 23 deletions

View file

@ -221,6 +221,10 @@ def utc_now_iso():
return utcnow.isoformat()
def timestamp_to_iso_date(timestamp):
return datetime.datetime.fromtimestamp(cast_to_int(timestamp)).strftime("%Y-%m-%d")
def human_duration(s, sig='dhms'):
hd = ''