fastcgipp-users
[Top][All Lists]
Advanced

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

Re: [Fastcgipp-users] Re: converting data to string


From: Axel von Bertoldi
Subject: Re: [Fastcgipp-users] Re: converting data to string
Date: Mon, 4 Jan 2010 08:24:57 -0700

Maybe the Address class could benefit from a getString() method?

a.

On Mon, Jan 4, 2010 at 12:06 AM, <address@hidden> wrote:
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]