G
Gary Wessle
Hello
I have been playing around all day on how to convert a time epoch to a
string in the format of my choice.
ctime puts out Thu Feb 1 18:32:14 2007
but I want 2007-2-1 18:32:14
any ideas, I tried with boost but it is an overkill.
// date_input_facet* inf = new date_input_facet();
// f->format("%a %b %d %H:%M:%S %Y"); // file:///usr/share/doc/boost-1.33.1/date_time/date_time_io.html
// date_output_facet* outf = new
then got stuck.
thanks
I have been playing around all day on how to convert a time epoch to a
string in the format of my choice.
ctime puts out Thu Feb 1 18:32:14 2007
but I want 2007-2-1 18:32:14
any ideas, I tried with boost but it is an overkill.
// date_input_facet* inf = new date_input_facet();
// f->format("%a %b %d %H:%M:%S %Y"); // file:///usr/share/doc/boost-1.33.1/date_time/date_time_io.html
// date_output_facet* outf = new
then got stuck.
thanks