Boost logo

Boost Users :

Subject: [Boost-users] date-time separator
From: Conoscenza Silente (abruzzoforteegentile_at_[hidden])
Date: 2010-07-15 07:16:54

H all
I am using posix time to print the current timestamp into a string.

boost::posix_time::ptime now(
boost::posix_time::microsec_clock::local_time() );
std::string nowString = boost::posix_time::to_iso_extended_string( now );

The output is the following being T the date-time separator


Is there any way to change the 'T' char separator with another
character or string?
I need a space instead of a 'T'

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at