convert time_t to string and vice versa

Nov 1, 2009 at 3:48am
hi,

how can i convert time_t to string format. my time_t result is unix timestamp. i have to convert to string format. i tried (string)timestamp but it couldnt work

here is how i get my current time:
this->timestamp = time(0);

so i have to convert to string:
string t1 = (string)this->timestamp;

but its not working. what should i do??

tks in adv
Last edited on Nov 1, 2009 at 3:53am
Nov 1, 2009 at 4:06am
hi guys,

i managed to resolve it. tks
Topic archived. No new replies allowed.