<?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 auslesen?]]></title><description><![CDATA[<p>Hallo,<br />
Ich würde gerne mal die momentane Zeit und am besten auch noch das Datum auslesen. Ich hab auch schon was gefunden aber verstehen tu ichd nich...</p>
<pre><code class="language-cpp">#include &lt;iostream.h&gt;
#include &lt;time.h&gt;

int main()
{
	time_t time(time_t*);
         cout &lt;&lt; time &lt;&lt; endl;

	return 0;
}
</code></pre>
<p>Die Variable time wird überhaupt nicht deklariert und trotzdem giebt es sie.<br />
Wen man time ausgiebt wird aber nur eine speicheradresse angezeigt.<br />
Wie kan ich es machen das ich die aktuelle Zeit angezeigt bekomme?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/140597/zeit-auslesen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 16:07:27 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/140597.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 Mar 2006 20:56:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zeit auslesen? on Wed, 15 Mar 2006 20:56:01 GMT]]></title><description><![CDATA[<p>Hallo,<br />
Ich würde gerne mal die momentane Zeit und am besten auch noch das Datum auslesen. Ich hab auch schon was gefunden aber verstehen tu ichd nich...</p>
<pre><code class="language-cpp">#include &lt;iostream.h&gt;
#include &lt;time.h&gt;

int main()
{
	time_t time(time_t*);
         cout &lt;&lt; time &lt;&lt; endl;

	return 0;
}
</code></pre>
<p>Die Variable time wird überhaupt nicht deklariert und trotzdem giebt es sie.<br />
Wen man time ausgiebt wird aber nur eine speicheradresse angezeigt.<br />
Wie kan ich es machen das ich die aktuelle Zeit angezeigt bekomme?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1017164</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1017164</guid><dc:creator><![CDATA[Xclear]]></dc:creator><pubDate>Wed, 15 Mar 2006 20:56:01 GMT</pubDate></item><item><title><![CDATA[Reply to Zeit auslesen? on Wed, 15 Mar 2006 21:52:44 GMT]]></title><description><![CDATA[<p>Klappt mit der Funktion GetSystemTime()<br />
Probier das mal:</p>
<pre><code class="language-cpp">void GetSystemTime(LPSYSTEMTIME lpSystemTime);
</code></pre>
<p>Siehe auch dazu in der <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/getsystemtime.asp" rel="nofollow">MSDN</a>.</p>
<p>Bzw. <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-96657-and-view-is-previous.html" rel="nofollow">hier</a> kam das auch schon einmal als Frage</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1017186</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1017186</guid><dc:creator><![CDATA[W0lf]]></dc:creator><pubDate>Wed, 15 Mar 2006 21:52:44 GMT</pubDate></item><item><title><![CDATA[Reply to Zeit auslesen? on Thu, 16 Mar 2006 07:33:46 GMT]]></title><description><![CDATA[<p>Ich glaube, du hast die &lt;ctime&gt; Bibliothek da falsch verstanden - du definierst eine Funktion &quot;time()&quot; und gibst ihre Adresse zurück. Richtig müsste es so aussehen:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt; //iostream.h ist veraltet
#include &lt;ctime&gt;
using namespace std;

int main()
{
  time_t t0=time(NULL);

  cout&lt;&lt;&quot;Sekunden seit 1.1.1970: &quot;&lt;&lt;t0&lt;&lt;endl;
  cout&lt;&lt;&quot;Datumsstring: &quot;&lt;&lt;ctime(t0)&lt;&lt;endl;
  tm* t1=localtime(&amp;t0);
  cout&lt;&lt;&quot;Datum: &quot;&lt;&lt;tm-&gt;tm_mday&lt;&lt;&quot;.&quot;&lt;&lt;tm-&gt;tm_mon+1&lt;&lt;&quot;.&quot;&lt;&lt;tm-&gt;tm_year+1900&lt;&lt;endl;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1017254</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1017254</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 16 Mar 2006 07:33:46 GMT</pubDate></item></channel></rss>