|
From: | Axel von Bertoldi |
Subject: | Re: [Fastcgipp-users] Re: converting data to string |
Date: | Mon, 4 Jan 2010 08:24:57 -0700 |
I think I've solved both issues:
REMOTEADDR as string:
#include <sstream>
std::ostringstream outs;
outs << environment.remoteAddress;
std::string output_ip = outs.str();
Current DateTime as string:
std::string output_date =
boost::posix_time::to_simple_string(boost::posix_time::second_clock::local_time());
Are these the best/optimal methods?
Mike
[Prev in Thread] | Current Thread | [Next in Thread] |