Re: [Cppcms-users] strange date time parsing
Brought to you by:
artyom-beilis
|
From: Lee E. <lee...@gm...> - 2012-07-09 07:28:33
|
it seems the the format of the date and for the parsing do not match in the
second example
On Mon, Jul 9, 2012 at 9:28 AM, <ele...@ex...> wrote:
> > booster::locale::generator gen;
> > std::locale::global(gen(""));
> >
> > std::istringstream is("01_01_2012-05_30_45");
> > booster::locale::date_time dt;
> > is >> booster::locale::as::ftime("%d_%m_%Y-%H_%M_%S") >> dt;
>
>
> it seems like that if i move %Y and the year to start like this:
>
> std::istringstream is("2012-01_01-05_30_45");
> booster::locale::date_time dt;
> is >> booster::locale::as::ftime("%Y_%d_%m-%H_%M_%S") >> dt;
>
> Then it works.
>
> Is there something im doing wrong?
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
--
--
lee
Lee Elenbaas
lee...@gm...
|