cvs: phpdoc-de /reference/datetime/functions checkdate.xml date.xml gettimeofday.xml
| From: | Friedhelm Betz | Date: | Mon, 12 Jan 2004 00:22:10 +0000 |
| Subject: | cvs: phpdoc-de /reference/datetime/functions checkdate.xml date.xml gettimeofday.xml | ||
| Groups: | php.doc.de | ||
| Request: | Send a blank email to doc-de+get-1053@lists.php.net to get a copy of this message | ||
betz Sun Jan 11 19:22:10 2004 EDT
Modified files:
/phpdoc-de/reference/datetime/functions checkdate.xml date.xml
gettimeofday.xml
Log:
sync to en
Index: phpdoc-de/reference/datetime/functions/checkdate.xml
diff -u phpdoc-de/reference/datetime/functions/checkdate.xml:1.8
phpdoc-de/reference/datetime/functions/checkdate.xml:1.9
--- phpdoc-de/reference/datetime/functions/checkdate.xml:1.8 Mon Jan 5 08:31:31 2004
+++ phpdoc-de/reference/datetime/functions/checkdate.xml Sun Jan 11 19:22:10 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
-<!-- EN-Revision: 1.4 Maintainer: betz Status: ready -->
+<!-- $Revision: 1.9 $ -->
+<!-- EN-Revision: 1.5 Maintainer: betz Status: ready -->
<refentry id="function.checkdate">
<refnamediv>
@@ -42,6 +42,28 @@
</itemizedlist>
</para>
<para>
+ <example>
+ <title><function>checkdate</function> Beispiel</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+var_dump(checkdate(12, 31, 2000));
+var_dump(checkdate(2, 29, 2001));
+?>
+]]>
+ </programlisting>
+ <para>
+ Dieses Beispiel gibt folgendes aus:
+ </para>
+ <screen>
+<![CDATA[
+bool(true)
+bool(false)
+]]>
+ </screen>
+ </example>
+ </para>
+ <para>
Siehe auch <function>mktime</function> und
<function>strtotime</function>.
</para>
</refsect1>
Index: phpdoc-de/reference/datetime/functions/date.xml
diff -u phpdoc-de/reference/datetime/functions/date.xml:1.11
phpdoc-de/reference/datetime/functions/date.xml:1.12
--- phpdoc-de/reference/datetime/functions/date.xml:1.11 Mon Jan 5 08:31:31 2004
+++ phpdoc-de/reference/datetime/functions/date.xml Sun Jan 11 19:22:10 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.11 $ -->
-<!-- EN-Revision: 1.12 Maintainer: betz Status: ready -->
+<!-- $Revision: 1.12 $ -->
+<!-- EN-Revision: 1.14 Maintainer: betz Status: ready -->
<refentry id="function.date">
<refnamediv>
@@ -151,7 +151,7 @@
</row>
<row>
<entry><literal>r</literal></entry>
- <entry>RFC 822 formatiertes Datume</entry>
+ <entry><ulink url="&url.rfc;2822">RFC 2822</ulink>
formatiertes Datum</entry>
<entry>Beispiel: <literal>Thu, 21 Dec 2000 16:01:07
+0200</literal></entry>
</row>
<row>
@@ -236,8 +236,8 @@
// Gibt etwas ähnliches aus wie: Wednesday 15th of January 2003 05:51:38 AM
echo date("l dS of F Y h:i:s A");
-// Ausgabe: July 1, 2000 ist ein Samstag
-echo "July 1, 2000 is on a " . date("l", mktime(0, 0, 0, 7, 1, 2000));
+// Ausgabe: July 1, 2000 ist ein Saturday
+echo "July 1, 2000 ist ein " . date("l", mktime(0, 0, 0, 7, 1, 2000));
?>
]]>
</programlisting>
Index: phpdoc-de/reference/datetime/functions/gettimeofday.xml
diff -u phpdoc-de/reference/datetime/functions/gettimeofday.xml:1.4
phpdoc-de/reference/datetime/functions/gettimeofday.xml:1.5
--- phpdoc-de/reference/datetime/functions/gettimeofday.xml:1.4 Sun Jun 9 06:55:30 2002
+++ phpdoc-de/reference/datetime/functions/gettimeofday.xml Sun Jan 11 19:22:10 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
-<!-- EN-Revision: 1.2 Maintainer: betz Status: ready -->
+<!-- $Revision: 1.5 $ -->
+<!-- EN-Revision: 1.3 Maintainer: betz Status: ready -->
<refentry id="function.gettimeofday">
<refnamediv>
@@ -40,6 +40,32 @@
</listitem>
</itemizedlist>
</para>
+ <para>
+ <example>
+ <title><function>gettimeofday</function> Beispiel</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+print_r(gettimeofday());
+?>
+]]>
+ </programlisting>
+ <para>
+ Das Ergebnis sieht so ähnlich wie folgt aus:
+ </para>
+ <screen>
+<![CDATA[
+Array
+(
+ [sec] => 1073687692
+ [usec] => 934726
+ [minuteswest] => -60
+ [dsttime] => 0
+)
+]]>
+ </screen>
+ </example>
+ </para>
</refsect1>
</refentry>