Date manipulation: Difference between revisions

no edit summary
(→‎{{header|C++}}: Formatting: libheader)
No edit summary
Line 137:
//what's New York time in the Berlin time zone ?
boost::local_time::time_zone_ptr bt = tz_db.time_zone_from_region( "Europe/Berlin" ) ;
std::cout.imbue( std::locale( "de_DE.UTF-8" ) ) ; //choose the output forman appropriate for the time zone
std::cout << "This corresponds to " << ltlater.local_time_in( bt ) << " in Berlin!\n" ;
return 0 ;
Line 145 ⟶ 146:
local time: 2009-Mar-07 19:30:00 EST
12 hours after 2009-Mar-07 19:30:00 EST it is 2009-Mar-08 08:30:00 EDT !
This corresponds to 2009-MarMär-08 13:30:00 CET in Berlin!
 
</pre>
 
262

edits