from datetime import datetime millis = 1433356618314 #XXX: WRONG DON'T DO IT datetime.fromtimestamp(str(millis)[0:-3])
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "./prog.py", line 6, in <module> TypeError: an integer is required (got type str)