0

Guys Im taking this Unix timestamp and converting it to date time. I have tried absolutly everything and cant figure out why im getting this error. Can someone please help me figure this out please.

1605195918507251700

Using this function

def ts_to_datetime(ts) -> str:
    return datetime.datetime.fromtimestamp(ts / 1000.0).strftime('%Y-%m-%d %H:%M')
lizardcoder
  • 336
  • 3
  • 6

0 Answers0