I have a Task object with a start_time and an estimated time in seconds. The start_time is stored in the database as a MYSQL DATETIME and the estimated time is stored as seconds. I would like to add the seconds to the start_time to get an estimated finish date.
There is a lot in the link Neville gave, but cutting slightly to the chase...
my_date_time + INTERVAL xx SECOND
I think it is more correct to use DATE_ADD(), but as far as I know there is no performance difference.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With