I am not able to insert the exact format into mysql table.
In my code I am subracting the old timestamp value with the current timestamp value. I am inserting the difference into the table but the inserted value is "0000-00-00 00:00:00" format.
The value from_unixtime(1132344) should be converted into date format.
If i use localtime(1132344) the value is not getting inserted.
The data type used in the table is timestamp and not getting inserted into the table.
How to use date format in perl as it can be used in php