Boost logo

Boost Users :

Subject: Re: [Boost-users] date-time separator
From: Conoscenza Silente (abruzzoforteegentile_at_[hidden])
Date: 2010-07-15 09:31:54


If I use

std::string nowString = boost::posix_time::to_simple_string ( now );

I will have the month outputted using litterals like ths.

2002-Jan-31T10:00:01.123456789

I need to stick to digits

On Thu, Jul 15, 2010 at 2:48 PM, Patrick Loney <
patrick.loney_at_[hidden]> wrote:

> > std::string nowString = boost::posix_time::to_iso_extended_string( now
> );
>
> Is there any way to change the 'T' char separator with another character or string?
>
> std::string nowString = boost::posix_time::to_simple_string ( now );
>
> http://www.boost.org/doc/libs/1_43_0/doc/html/date_time/posix_time.html#date_time.posix_time.ptime_class
>
> (conversion to string)
>
>
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net