Re: [Cppcms-users] Parsing time from a string into date_time?
Brought to you by:
artyom-beilis
From: <ele...@ex...> - 2012-04-20 01:47:43
|
Aaah excellent. What happens if the time string doesn't match the format? ie. the time/date is 2001/12/01 and ftime is set to %Y-%m-%d Is there a way to check for such failure(ie. does it throw?) Thanks! Petr > It works, with manipulators: > > ss >> booster::locale::as::ftime("%Y-%m-%d") >> dt; > > It requires CppCMS to be compiled with ICU. > > Artyom > |