<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Zeitzohne]]></title><description><![CDATA[<p>Folgender Manipulator schiebt eine Zeit in den ostream, die eine Stunde zurück ist. Was habe ich falsch gemacht?</p>
<p>Gruss und Danke,<br />
T.</p>
<pre><code class="language-cpp">#include &quot;boost/date_time/local_time/local_time.hpp&quot;

using namespace std;

ostream&amp; now(ostream&amp; os)
{
  boost::local_time::local_time_facet* facet(new boost::local_time::local_time_facet(&quot;%Y-%m-%d %H:%M:%S &quot;));
  os.imbue(locale(os.getloc(), facet));
  boost::local_time::local_date_time t = boost::local_time::local_sec_clock::local_time(boost::local_time::time_zone_ptr());
  return os &lt;&lt; t;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/278581/zeitzohne</link><generator>RSS for Node</generator><lastBuildDate>Tue, 25 Aug 2026 05:14:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/278581.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Dec 2010 11:26:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zeitzohne on Thu, 09 Dec 2010 11:28:07 GMT]]></title><description><![CDATA[<p>Folgender Manipulator schiebt eine Zeit in den ostream, die eine Stunde zurück ist. Was habe ich falsch gemacht?</p>
<p>Gruss und Danke,<br />
T.</p>
<pre><code class="language-cpp">#include &quot;boost/date_time/local_time/local_time.hpp&quot;

using namespace std;

ostream&amp; now(ostream&amp; os)
{
  boost::local_time::local_time_facet* facet(new boost::local_time::local_time_facet(&quot;%Y-%m-%d %H:%M:%S &quot;));
  os.imbue(locale(os.getloc(), facet));
  boost::local_time::local_date_time t = boost::local_time::local_sec_clock::local_time(boost::local_time::time_zone_ptr());
  return os &lt;&lt; t;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1991858</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1991858</guid><dc:creator><![CDATA[Tomahawk]]></dc:creator><pubDate>Thu, 09 Dec 2010 11:28:07 GMT</pubDate></item><item><title><![CDATA[Reply to Zeitzohne on Thu, 09 Dec 2010 12:24:11 GMT]]></title><description><![CDATA[<blockquote>
<p>Was habe ich falsch gemacht?</p>
</blockquote>
<p>Hilft doch noch ein wenig mit Fehlermeldungen, Compile Time Error / Link Time Error, Exception , etc.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1991880</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1991880</guid><dc:creator><![CDATA[theta]]></dc:creator><pubDate>Thu, 09 Dec 2010 12:24:11 GMT</pubDate></item><item><title><![CDATA[Reply to Zeitzohne on Thu, 09 Dec 2010 12:56:35 GMT]]></title><description><![CDATA[<p>Naja, compilieren lässt sich der Code, nur dass die zeitangabe um eine Stunde hinterherhinkt, obwohl ich die locals verwende?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1991898</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1991898</guid><dc:creator><![CDATA[Tomahawk]]></dc:creator><pubDate>Thu, 09 Dec 2010 12:56:35 GMT</pubDate></item><item><title><![CDATA[Reply to Zeitzohne on Thu, 09 Dec 2010 13:01:45 GMT]]></title><description><![CDATA[<p>Weil die lokale Zeit eben nicht die Deutsche ist? Wir sind UTC + 1 und dein Programm bezieht sich eventuell auf UTC?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1991902</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1991902</guid><dc:creator><![CDATA[UTC+1]]></dc:creator><pubDate>Thu, 09 Dec 2010 13:01:45 GMT</pubDate></item></channel></rss>