Re: [Cppcms-users] strange date time parsing
Brought to you by:
artyom-beilis
From: <ele...@ex...> - 2012-07-09 07:35:59
|
> it seems the the format of the date and for the parsing do not match in > the > second example > Sorry that was just a typo. see, I fixed it below > 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; The problem is still the same. It seems like the time gets parsed properly everytime but the date does not unless the date is in the format %Y_%d_%m or %Y_%m-%d Petr |