Converting a time_t to string

Posted by wyatt on Stack Overflow See other posts from Stack Overflow or by wyatt
Published on 2010-05-08T20:14:03Z Indexed on 2010/05/08 20:18 UTC
Read the original article Hit count: 273

Filed under:

I have a time_t variable containing a timestamp which I'd like to store in a database, so I need it as a string. How would I convert it.

Also, on the subject, how would I convert a timestamp string into a time_t varible?

Thanks, Wyatt

© Stack Overflow or respective owner

Related posts about c++