Re: [Cppcms-users] strange date time parsing
Brought to you by:
artyom-beilis
From: <ele...@ex...> - 2012-07-09 06:28:21
|
> 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? |