Simplest way to get current time in current timezone using boost::date_time ?
- by timday
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 printed.
What's the simplest way to obtain the same thing with boost::date_time ?
If I do this:
std::ostringstream msg;
boost::local_time::local_date_time t =
…