fastcgipp-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fastcgipp-users] Re: converting data to string


From: ninti
Subject: [Fastcgipp-users] Re: converting data to string
Date: Mon, 04 Jan 2010 17:36:17 +1030

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 
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]