Can you show us the error message you get, or is it a secret?
It really helps us to see what the error message is, but if I had to
guess, my guess is that you might be getting something like this:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: an integer is required (got type str)
If that is the error, then it tells you what the problem is. You have a
string, but you need an integer.
Do you know how to turn a string like “1624284672” into an integer
You use the
mytimestamp = "1624284672" # a str
mytimestamp = int(mytimestamp) # now an int
# returns datetime.datetime(2021, 6, 22, 0, 11, 12)
If my guess is wrong, and you have some other error, I’m out of guesses.
I would have to see the actual error to have any hope of solving the