I am trying to store unix timestamp in mysql with mysql timestamp but when I try to do that it shows 0000-00-00 00:00:00 in mysql
the way I have tried are as follows
table structure in mysql id name timestamp whare id is auto name is varchar and timestamp is timestamp
sql query is "INSERT INTO stocks (ticker, timestamp) VALUES ("harry", "1607485826")"
I have tried another one with datetime as follows from datetime import datetime // imported once only
tmpstp = datetime.fromtimestamp(1607485826)
f'INSERT INTO stocks (ticker, timestamp) VALUES ("harry", {tmpstp})'