time_t seconds;
time(&seconds);
cout << seconds << endl;
This gives me a timestamp. How can I get that epoch date into a string?
std::string s = seconds;
does not work
Thanks, Noah
P.S. It's really much easier in ruby!:
>> Time.now.to_i.to_s
=> "1245089994"