<?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[Zeit generieren]]></title><description><![CDATA[<p>Hi,</p>
<p>Ich moechte aus den vergangenen Sekunden seit 1970 ein time struct konstruieren,<br />
wie geht das? Also etwas in der Art von:</p>
<pre><code>mktime(1147872119)
</code></pre>
<pre><code>time_t seconds= time(NULL)
</code></pre>
<p>liefert mir nur das aktuelle Datum.</p>
<p>Danke.</p>
<p>Gruss<br />
Max</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/147502/zeit-generieren</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Sep 2026 09:09:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/147502.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 17 May 2006 13:40:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zeit generieren on Wed, 17 May 2006 13:40:38 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>Ich moechte aus den vergangenen Sekunden seit 1970 ein time struct konstruieren,<br />
wie geht das? Also etwas in der Art von:</p>
<pre><code>mktime(1147872119)
</code></pre>
<pre><code>time_t seconds= time(NULL)
</code></pre>
<p>liefert mir nur das aktuelle Datum.</p>
<p>Danke.</p>
<p>Gruss<br />
Max</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1059575</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1059575</guid><dc:creator><![CDATA[__maximus__]]></dc:creator><pubDate>Wed, 17 May 2006 13:40:38 GMT</pubDate></item><item><title><![CDATA[Reply to Zeit generieren on Wed, 17 May 2006 13:47:30 GMT]]></title><description><![CDATA[<p>eine Minute hat 60s<br />
eine Stunde 60min.<br />
ein tag 24h<br />
ein jahr 365d manchmal 366!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1059584</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1059584</guid><dc:creator><![CDATA[THX 1138]]></dc:creator><pubDate>Wed, 17 May 2006 13:47:30 GMT</pubDate></item><item><title><![CDATA[Reply to Zeit generieren on Wed, 17 May 2006 13:50:09 GMT]]></title><description><![CDATA[<p><a href="http://www.hmug.org/man/3/localtime.php" rel="nofollow">localtime</a> und <a href="http://www.hmug.org/man/3/gmtime.php" rel="nofollow">gmtime</a> machen aus einer beliebigen time_t eine struct tm... mktime (wie Du schon erkannt hast) umgekehrt.</p>
<p>EDIT:<br />
@1310-Logik: Nicht Dein Ernst das selberzumachen?! :p</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1059587</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1059587</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Wed, 17 May 2006 13:50:09 GMT</pubDate></item><item><title><![CDATA[Reply to Zeit generieren on Thu, 18 May 2006 09:35:25 GMT]]></title><description><![CDATA[<p>Puh, also ich steh kraeftig auf dem Schlauch.</p>
<p>Ich hab ein int 11111111, das die Sekunden seit 1970 repraesentiert.<br />
Wie bekomme ich das jetzt in ein zeit struct?</p>
<p>Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1059997</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1059997</guid><dc:creator><![CDATA[__maximus__]]></dc:creator><pubDate>Thu, 18 May 2006 09:35:25 GMT</pubDate></item><item><title><![CDATA[Reply to Zeit generieren on Thu, 18 May 2006 09:40:40 GMT]]></title><description><![CDATA[<p>wlkikiv - dafür bieten sich die Funktionen gmtime() bzw. localtime() an (erstere verwendet Greenwich-Zeit, letztere berücksichtigt deine lokale Zeitzone).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1060000</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060000</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 18 May 2006 09:40:40 GMT</pubDate></item><item><title><![CDATA[Reply to Zeit generieren on Thu, 18 May 2006 10:33:40 GMT]]></title><description><![CDATA[<p>LordJaxom schrieb:</p>
<blockquote>
<p><a href="http://www.hmug.org/man/3/localtime.php" rel="nofollow">localtime</a> und <a href="http://www.hmug.org/man/3/gmtime.php" rel="nofollow">gmtime</a> machen aus einer beliebigen time_t eine struct tm... mktime (wie Du schon erkannt hast) umgekehrt.</p>
<p>EDIT:<br />
@1310-Logik: Nicht Dein Ernst das selberzumachen?! :p</p>
</blockquote>
<p>So als Übung?<br />
Nein natürlich nicht.. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1060020</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060020</guid><dc:creator><![CDATA[THX 1138]]></dc:creator><pubDate>Thu, 18 May 2006 10:33:40 GMT</pubDate></item><item><title><![CDATA[Reply to Zeit generieren on Thu, 18 May 2006 14:05:59 GMT]]></title><description><![CDATA[<p>Okok, lesen bildet. Danke, hat geklappt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1060184</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060184</guid><dc:creator><![CDATA[__maximus__]]></dc:creator><pubDate>Thu, 18 May 2006 14:05:59 GMT</pubDate></item></channel></rss>