cvs: phpdoc-pl /reference/datetime/functions strtotime.xml
| From: | Leszek Krupinski | Date: | Tue, 25 Mar 2003 03:00:11 +0000 |
| Subject: | cvs: phpdoc-pl /reference/datetime/functions strtotime.xml | ||
| Groups: | php.doc.pl | ||
| Request: | Send a blank email to doc-pl+get-142@lists.php.net to get a copy of this message | ||
leszek Mon Mar 24 22:00:11 2003 EDT
Modified files:
/phpdoc-pl/reference/datetime/functions strtotime.xml
Log:
[qrak] update
Index: phpdoc-pl/reference/datetime/functions/strtotime.xml
diff -u phpdoc-pl/reference/datetime/functions/strtotime.xml:1.3
phpdoc-pl/reference/datetime/functions/strtotime.xml:1.4
--- phpdoc-pl/reference/datetime/functions/strtotime.xml:1.3 Wed Jun 19 21:48:09 2002
+++ phpdoc-pl/reference/datetime/functions/strtotime.xml Mon Mar 24 22:00:11 2003
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.2 Maintainer: qrak Status: ready -->
-<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.3 Maintainer: qrak Status: ready -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/datetime.xml, last change in rev 1.8 -->
<refentry id="function.strtotime">
<refnamediv>
@@ -37,6 +37,7 @@
<title>przyk³ady <function>strtotime</function></title>
<programlisting role="php">
<![CDATA[
+<?php
echo strtotime ("now"), "\n";
echo strtotime ("10 September 2000"), "\n";
echo strtotime ("+1 day"), "\n";
@@ -44,6 +45,7 @@
echo strtotime ("+1 week 2 days 4 hours 2 seconds"), "\n";
echo strtotime ("next Thursday"), "\n";
echo strtotime ("last Monday"), "\n";
+?>
]]>
</programlisting>
</example>
@@ -53,12 +55,14 @@
<title>Checking for failure</title>
<programlisting role="php">
<![CDATA[
+<?php
$str = 'Not Good';
if (($timestamp = strtotime($str)) === -1) {
echo "Tekst daty ($str) jest niepoprawny";
} else {
echo "$str == ". date('l dS of F Y h:i:s A',$timestamp);
}
+?>
]]>
</programlisting>
</example>