I am receiving this time through an API:
1644256800000
then I do:
from datetime import datetime, timezone
datetime.fromtimestamp(1644256800000, timezone.utc)
and it returns the error: {OSError}[Errno 22] Invalid argument
. Then if I remove 2 zeroes from the number:
from datetime import datetime, timezone
datetime.fromtimestamp(16442568000, timezone.utc)
the value goes through and returns the result: 2491-01-16 07:00:00
something like 400 years later.
What is the wrong part?