Re: [Cppcms-users] sqlite3 CURRENT_TIMESTAMP compare to date_time
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-05-21 12:45:19
|
You can convert booster::locale::date_time to tm by selecting individual fields. Currently there is no automatic conversion as converting date_time to std::tm have meaningful when Gregorian calendar is used. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: "ele...@ex..." <ele...@ex...> >To: Artyom Beilis <art...@ya...>; cpp...@li... >Sent: Friday, May 18, 2012 12:40 PM >Subject: Re: [Cppcms-users] sqlite3 CURRENT_TIMESTAMP compare to date_time > >> it is not ptime, booster::ptime::universal_time converts ptime to std::tm >> and vise versa. The overload >> is for std::tm >> > >I see, but the question stays - whats the best way to convert date_time to >std::tm? I'd rather not mix both ptime and date_time in the project. > > >------------------------------------------------------------------------------ >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 > > > |