If I do date +%H-%M-%S on the commandline (Debian/Lenny), I get a user-friendly (not UTC, not DST-less, the time a normal person has on their wristwatch) time p
date +%H-%M-%S
This does what I want:
namespace pt = boost::posix_time; std::ostringstream msg; const pt::ptime now = pt::second_clock::local_time(); pt::time_facet*const f = new pt::time_facet("%H-%M-%S"); msg.imbue(std::locale(msg.getloc(),f)); msg << now;