This commit is contained in:
Luke Tainton (ltainton)
2023-04-05 20:57:31 +01:00
parent be6546e4cc
commit 102b74e90a
21 changed files with 409 additions and 13 deletions

7
app/utils/datetime.py Normal file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env python3
from datetime import datetime
def timestamp_to_date(timestamp: int) -> str:
return datetime.utcfromtimestamp(timestamp).strftime("%Y-%m-%d")