Can someone explain how i can calculate the time in "%Y%m%d%H%M%S%f" from my Firebase timestamp? I am receiving an error
signed integer is greater than maximum
when i do the following:
from datetime import datetime
def formatdatetime(sfd):
ts = datetime(sfd)
print(datetime.strftime("%Y%m%d%H%M%S%f", ts))
formatdatetime(1521508504583)
I'm guessing that I'm not taking in the milliseconds correctly?