roboluke-tasks/app/utils/datetime.py

8 lines
171 B
Python
Raw Permalink Normal View History

2023-04-05 21:57:31 +02:00
#!/usr/bin/env python3
from datetime import datetime
def timestamp_to_date(timestamp: int) -> str:
return datetime.utcfromtimestamp(timestamp).strftime("%Y-%m-%d")