Convert MYSQL Timestamp to time_t
Posted
by Kewley
on Stack Overflow
See other posts from Stack Overflow
or by Kewley
Published on 2010-01-14T20:46:29Z
Indexed on
2010/03/25
20:13 UTC
Read the original article
Hit count: 499
I'm writing a multi-threaded program that needs to be able to check if a row requires updating and act accordingly.
I had problems using the built in date/time functions of MySql and so decided to just store the "lastupdate" timestamp as an integer in the table. However, I'm having problems converting this timestamp to time_t so that I can use the time functions with it.
Any help is greatly appreciated.
© Stack Overflow or respective owner