Re: [Cppcms-users] C++ locale and boost.locale
Brought to you by:
artyom-beilis
From: augustin <aug...@ov...> - 2011-05-05 13:31:47
|
On Thursday 05 May 2011 12:52:44 am Artyom wrote: > > getline(ss, r); > > return r; > > It is better to call > > return ss.str() Oops! This one is very embarrassing given the time I wasted trying to figure out a simple way to extract the string from the stream! Thank you very much for all your comments on my code. They're duly noted. I appreciate it. > http://cppcms.sourceforge.net/cppcms_ref_v0_99/namespacecppcms_1_1filters. > html > > So just write in the template > > > <% tt | datetime %> > > Or even with more fine grained control > > <% tt | strftime("%Y-%m-%d %H:%M:%S %Z") %> > > > where tt is just time_t in your context :-) Ah, yes! You just answered my earlier question about locales in a cppcms context. This is actually what I meant. I knew my approach didn't feel right. It works as it should, now. Thanks again, augustin. -- Friends: http://www.reuniting.info/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |