cvs: phpdoc-hu /reference/datetime/functions strtotime.xml
| From: | Bagi Levente L�szl� | Date: | Thu, 05 Aug 2004 20:20:39 +0000 |
| Subject: | cvs: phpdoc-hu /reference/datetime/functions strtotime.xml | ||
| Groups: | php.doc.hu | ||
| Request: | Send a blank email to doc-hu+get-885@lists.php.net to get a copy of this message | ||
bagilevi Thu Aug 5 16:20:39 2004 EDT
Modified files:
/phpdoc-hu/reference/datetime/functions strtotime.xml
Log:
sync
http://cvs.php.net/diff.php/phpdoc-hu/reference/datetime/functions/strtotime.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc-hu/reference/datetime/functions/strtotime.xml
diff -u phpdoc-hu/reference/datetime/functions/strtotime.xml:1.2
phpdoc-hu/reference/datetime/functions/strtotime.xml:1.3
--- phpdoc-hu/reference/datetime/functions/strtotime.xml:1.2 Wed Apr 17 02:57:56 2002
+++ phpdoc-hu/reference/datetime/functions/strtotime.xml Thu Aug 5 16:20:39 2004
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- splitted from ./hu/functions/datetime.xml, last change in rev 1.1 -->
<!-- last change to 'strtotime' in en/ tree in rev 1.8 -->
-<!-- EN-Revision: 1.2 Maintainer: kgergely Status: ready -->
+<!-- EN-Revision: 1.7 Maintainer: kgergely Status: ready -->
<!-- OLD-Revision: 1.69/EN.1.8 -->
<refentry id="function.strtotime">
<refnamediv>
<refname>strtotime</refname>
<refpurpose>
- Mindenféle angol szöveges idõpontot UNIX idõbélyeggé alakít
+ Mindenféle angol szöveges idõpontot Unix idõbélyeggé alakít
</refpurpose>
</refnamediv>
<refsect1>
@@ -19,7 +19,7 @@
</methodsynopsis>
<simpara>
A függvény egy stringet vár, amiben egy angolul írt dátum van, és megpróbálja
- UNIX idõbélyeggé konvertálni, a <literal>now</literal> paramétert, vagy
+ Unix idõbélyeggé konvertálni, a <literal>now</literal> paramétert, vagy
ha az nincs megadva, az aktuális idõpontot figyelembe véve. Ha a függvény
nem tudja értelmezni a karakterláncot, <literal>-1</literal>-gyel tér
vissza.
@@ -36,13 +36,15 @@
<title><function>strtotime</function> példa</title>
<programlisting role="php">
<![CDATA[
-echo strtotime ("now"), "\n";
-echo strtotime ("10 September 2000"), "\n";
-echo strtotime ("+1 day"), "\n";
-echo strtotime ("+1 week"), "\n";
-echo strtotime ("+1 week 2 days 4 hours 2 seconds"), "\n";
-echo strtotime ("next Thursday"), "\n";
-echo strtotime ("last Monday"), "\n";
+<?php
+echo strtotime("now"), "\n";
+echo strtotime("10 September 2000"), "\n";
+echo strtotime("+1 day"), "\n";
+echo strtotime("+1 week"), "\n";
+echo strtotime("+1 week 2 days 4 hours 2 seconds"), "\n";
+echo strtotime("next Thursday"), "\n";
+echo strtotime("last Monday"), "\n";
+?>
]]>
</programlisting>
</example>
@@ -52,11 +54,13 @@
<title>Meghiúsulás-próba</title>
<programlisting role="php">
<![CDATA[
+<?php
$str = 'Nem jó';
if (($idobelyeg = strtotime($str)) === -1) {
echo "A string ($str) fura, nem értem";
} else {
-echo "$str == ". date('l dS of F Y h:i:s A',$idobelyeg);
+echo "$str == " . date('l dS of F Y h:i:s A', $idobelyeg);
+?>
}
]]>
</programlisting>
@@ -68,6 +72,11 @@
Jan. 19. 03:14:07 közötti idõpontot jelent (Greenwich-i idõpont
szerint) (Ezek a dátumok a legkisebb és a legnagyobb 32-bites egész
szám által reprezentált dátumok)
+ Nem minden platform támogatja a negatív
+ idõbélyegeket, ezért a elõfordulhat, hogy nem használhatsz Unix
+ Epoch elõtti dátumot. Ez azt jelenti, hogy például a <literal>1970.
+ január 1./literal> elõtti dátum nem mûködik Windows-on, néhány Linux
+ disztribûcióban, és még néhány egyéb operációs rendszeren.
</para>
</note>
</refsect1>