goba            Thu Feb 14 12:49:59 2002 EDT

  Modified files:              
    /phpdoc/hu  translation.xml 
    /phpdoc/hu/functions        datetime.xml 
  Log:
  Adding long awaited translation from Gergely Kontra. I was bad that I have
  not read and committed it for a *very* long time now. Now Gergely updated
  it, and I converted it with func2methodsyn, and it is here. => Removing from
  translation.xml...
  
  
Index: phpdoc/hu/translation.xml
diff -u phpdoc/hu/translation.xml:1.9 phpdoc/hu/translation.xml:1.10
--- phpdoc/hu/translation.xml:1.9       Wed Feb 13 18:23:40 2002
+++ phpdoc/hu/translation.xml   Thu Feb 14 12:49:58 2002
@@ -30,7 +30,6 @@
  </translators>
  
  <work-in-progress>
-  <file name="functions/datetime.xml"   person="kgergely" type="offline" />
   <file name="functions/dbx.xml"        person="gerzson"  type="translation" />
   <file name="functions/errorfunc.xml"  person="goba"     type="translation" />
   <file name="functions/filesystem.xml" person="nandi"    type="translation" />
Index: phpdoc/hu/functions/datetime.xml
diff -u /dev/null phpdoc/hu/functions/datetime.xml:1.3
--- /dev/null   Thu Feb 14 12:49:59 2002
+++ phpdoc/hu/functions/datetime.xml    Thu Feb 14 12:49:59 2002
@@ -0,0 +1,1145 @@
+<?xml version="1.0" encoding="iso-8859-2"?>
+<!-- EN-Revision: 1.65 Maintainer: kgergely Status: ready -->
+ <reference id="ref.datetime">
+  <title>D�tummal �s id�ponttal kapcsolatos f�ggv�nyek</title>
+  <titleabbrev>D�tum/id�</titleabbrev>
+
+  <refentry id="function.checkdate">
+   <refnamediv>
+    <refname>checkdate</refname>
+    <refpurpose>Ellen�riz egy id�pontot</refpurpose>
+   </refnamediv>
+   <refsect1>
+    <title>Le�r�s</title>
+     <methodsynopsis>
+      <type>bool</type><methodname>checkdate</methodname>
+      <methodparam><type>int</type><parameter>month</parameter></methodparam>
+      <methodparam><type>int</type><parameter>day</parameter></methodparam>
+      <methodparam><type>int</type><parameter>year</parameter></methodparam>
+     </methodsynopsis>
+    <para>
+     Visszat�r�si �rt�ke &true;, ha az argumentumban megadott d�tum �rv�nyes, 
+egy�bk�nt &false;.
+     Egy d�tum �rv�nes, ha:
+     <itemizedlist>
+      <listitem>
+       <simpara>
+        az �v 1 �s 32767 k�z�tt van
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        a h�nap 1 �s 12 k�z�tt van
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        A <parameter>day</parameter> param�ter a <parameter>month</parameter> �s a
+        <parameter>year</parameter> param�tereknek megfelel� �rt�ket vesz fel.
+        (Sz�k��veket term�szetesen helyesen kezeli)
+       </simpara>
+      </listitem>
+     </itemizedlist>
+    </para>
+    <para>
+     L�sd m�g a <function>mktime</function> �s a <function>strtotime</function>
+     f�ggv�nyt!
+    </para>
+   </refsect1>
+  </refentry>
+
+  <refentry id="function.date">
+   <refnamediv>
+    <refname>date</refname>
+    <refpurpose>Egy id�pontstringgel t�r vissza</refpurpose>
+   </refnamediv>
+   <refsect1>
+    <title>Le�r�s</title>
+     <methodsynopsis>
+      <type>string</type><methodname>date</methodname>
+      <methodparam><type>string</type><parameter>format</parameter></methodparam>
+      <methodparam choice="opt"><type>int</type><parameter>
+        timestamp
+       </parameter></methodparam>
+     </methodsynopsis>
+    <para>
+     Egy stringgel t�r vissza, amely a form�tumstring szerinti alakban tartalmazza a
+     <parameter>timestamp</parameter> d�tumot, ennek hi�ny�ban az aktu�lis helyi id�t.
+     <note>
+      <para>
+       Az id�pont �rv�nyes id�pontja tipikusan 1901 Dec. 13. 20:25:54 �s 2038.
+       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)
+      </para>
+      <para>
+       Ha egy karakterl�nc �ltal le�rt id�pontb�l szeretn�l id�pontot
+       gy�rtani, akkor haszn�lhatod a <function>strtotime</function>
+       f�ggv�nyt. R�ad�sul, n�h�ny adatb�zisnak van r� f�ggv�nye, hogy a bels�
+       id�pont-�br�zol�sukat "unix timestamp"-p� alak�tj�k (a MySQL
+       UNIX_TIMESTAMP f�ggv�nye ilyen).
+      </para>
+     </note>
+    </para>
+    <para>
+     A form�tum stringben a k�vetkez� karakterek lehetnek:
+     <itemizedlist>
+      <listitem>
+       <simpara>
+        a - "am" vagy "pm" (d�lel�tt vagy d�lut�n)
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        A - "AM" vagy "PM" (ugyanez nagybet�vel)
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        B - Swatch Internet time
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        d - nap, 2 sz�mjegy� (el�tte 0, ha kell) pl.: "01" .. "31"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        D - a h�t napja, bet�vel, 3 bet�s (angol[?]); pl.: "Fri"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        F - h�nap, bet�vel, hossz� (angol); pl.:"January"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        g - �ra, 12-�r�s form�tumban, "felesleges" null�k n�lk�l; pl.: "1" .. "12"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        G -  �ra, 24-�r�s form�tumban, "felesleges" null�k n�lk�l; pl.: "0" .. "23"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        h - �ra, 12-�r�s form�tumban (2 sz�mjegy); pl.: "01" .. "12"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        H - �ra, 24-�r�s form�tumban (2 sz�mjegy); pl.: "00" .. "23"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        i - perc (2 sz�mjegy); pl.: "00" .. "59"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        I (Nagy i) - "1" a ny�ri id�sz�m�t�s alatt, "0" egy�bk�nt.
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        j - h�nap, sz�mmal, "felesleges" null�k n�lk�l; pl.: "1" .. "31"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        l (kis 'L') - h�t napja, bet�vel, hossz�; pl.: "Friday"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        L - logikai v�ltoz�, jelzi, hogy sz�k��v van-e vagy se; pl.: "0" vagy "1"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        m - h�nap, sz�mmal (2 sz�mjegy); pl.: "01" .. "12"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        M - h�nap, bet�vel, 3 bet�s; pl.: "Jan"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        n - h�nap, sz�mmal, "felesleges" null�k n�lk�l; pl.: "1" .. "12"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        O - K�l�nbs�g a Greenwich-i id�h�z k�pest; pl.: "+0200"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        r - RFC 822 form�tum� d�tum; pl: "Thu, 21 Dec 2000 16:01:07 +0200"
+        (PHP 4.0.4 �ta)
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        s - m�sodperc; pl.: "00" .. "59"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        S - angol "sorsz�mn�v-string" [a napnak megfelel�], bet�vel, 2
+        karakter; pl.: "th", "nd"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        t - napok sz�ma az adott h�napban; pl.: "28" .. "31"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        T - A g�p id�z�na-be�ll�t�sa; pl. "MDT"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        U - eltelt m�sodpercek sz�ma a UNIX Epoch �ta (1970. 01. 01.)
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        w - h�t napja, sz�mmal, pl.: "0" (Vas�rnap) .. "6" (Szombat)
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        W - ISO-8601 h�t sz�m; a hetek h�tf�n kezd�dnek (PHP 4.1.0-t�l) [mi
+        szombat???]
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        Y - �v, 4 sz�mjegy; pl.: "1999"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        y - �v, 2 sz�mjegy; pl.: "99"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        z - janu�r 1 �ta eltelt napok sz�ma; pl.: "0" .. "365"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        Z - id�z�na eltol�d�s m�sodpercben(pl.: "-43200" .. "43200"). Az
+        id�z�n�k az UTC-t�l nyugatra mindig negat�vak, keletre mindig
+        pozit�vak.
+       </simpara>
+      </listitem>
+     </itemizedlist>
+    </para>
+    <para>
+     A form�tumstringben lev�, egy�b karakterek egy az egyben megjelennek.
+     A "Z" bet� mindig "0"-val t�r vissza, ha a
+     <function>gmdate</function>-et haszn�ljuk.
+
+     <example>
+      <title><function>date</function> p�lda</title>
+      <programlisting role="php">
+<![CDATA[
+echo (date ("l dS of F Y h:i:s A"));
+echo "July 1, 2000 is on a " . date ("l", mktime(0,0,0,7,1,2000));
+]]>
+      </programlisting>
+     </example>
+    </para>
+    <para>
+     A felismert karaktereket a form�tumstringben backslash-sel tudod
+     megv�deni. Ha a karakter backslash karakter ut�n is speci�lis jelent�ssel
+     b�r, akkor a backslash-t is meg kell v�deni a ki�rt�kel�st�l.
+     <example>
+      <title>
+       Karakterek megv�d�se a <function>date</function> f�ggv�nyben
+      </title>
+      <programlisting role="php">
+<![CDATA[
+echo date("l \\t\h\e jS"); // Valami olyasmit �r ki, hogy 'Saturday the 8th'
+]]>
+      </programlisting>
+     </example>
+    </para>
+    <para>
+     A <function>date</function>-et �s a <function>mktime</function>-ot
+     �gyesen egy�tt haszn�lva inform�ci�t szerezhetsz m�ltbeli �s j�v�beli
+     id�pontokr�l.
+     <example>
+      <title>
+       <function>date</function> �s <function>mktime</function>
+       p�lda
+      </title>
+      <programlisting role="php">
+<![CDATA[
+$tomorrow  = mktime (0,0,0,date("m")  ,date("d")+1,date("Y"));
+$lastmonth = mktime (0,0,0,date("m")-1,date("d"),  date("Y"));
+$nextyear  = mktime (0,0,0,date("m"),  date("d"),  date("Y")+1);
+# ezek mind m�k�dnek h�nap v�g�n, ill. janu�rban is. Ha nem hiszed, pr�b�ld ki!
+]]>
+      </programlisting>
+     </example>
+     <note>
+      <para>
+       Ez sokkal megb�zhat�bb, mint az id�b�lyegekkel sz�molni (gondolj a
+       t�li-ny�ri id�sz�m�t�skori �t�ll�sokra)
+      </para>
+     </note>
+    </para>
+    <para>
+     N�h�ny p�lda a <function>date</function> f�ggv�ny form�z�s�ra. Figyeld
+     meg, hogy az �sszes karaktert meg kell v�dened a ki�rt�kel�st�l, nem
+     csup�n azokat, amlyeknek m�r most speci�lis jelent�s�k van, ugyanis egy
+     j�v�beli PHP v�ltozatban ezek is jelent�st kaphatnak. Amikor egy
+     karaktert megv�desz az �rtelmez�st�l, haszn�lj aposztr�fokat a
+     karakterl�nc megad�s�ra, hogy pl. a \n �jsorokk� t�rt�n� �talak�t�s�t
+     megakad�lyozd.
+     <example>
+      <title>
+       A <function>date</function> f�ggvy�ny form�tumstringje
+      </title>
+      <programlisting role="php">
+<![CDATA[
+/* Tegy�k fel, hogy most March 10th, 2001, 5:16:18 pm  van*/
+$today = date("F j, Y, g:i a");                 // March 10, 2001, 5:16 pm
+$today = date("m.d.y");                         // 03.10.01
+$today = date("j, m, Y");                       // 10, 3, 2001
+$today = date("Ymd");                           // 20010310
+$today = date('h-i-s, j-m-y, it is w Day z ');  // 05-16-17, 10-03-01, 1631 1618 6 
+Fripm01
+$today = date('\M\a \a \h\�\n\a\p j. \n\a\p\j\a \v\a\n.');   // Ma a h�nap 10. napja 
+van
+$today = date("D M j G:i:s T Y");               // Sat Mar 10 15:16:08 MST 2001
+$today = date('H:m:s \m = \h\�\n\a\p');         // 17:03:17 m = h�nap
+$today = date("H:i:s");                         // 17:16:17
+]]>
+      </programlisting>
+     </example>
+    </para>
+    <para>
+     Ha a d�tumokat m�s nyelven szeretn�d megkapni, haszn�ld a
+     <function>setlocale</function> �s a <function>strftime</function>
+     f�ggv�nyeket.
+    </para>
+    <para>
+     L�sd m�g a <function>getlastmod</function>, <function>gmdate</function>,
+     <function>mktime</function>, <function>strftime</function> �s a
+     <function>time</function> f�ggv�nyeket.
+    </para>
+   </refsect1>
+  </refentry>
+
+  <refentry id="function.getdate">
+   <refnamediv>
+    <refname>getdate</refname>
+    <refpurpose>D�tum/id� inform�ci�</refpurpose>
+   </refnamediv>
+   <refsect1>
+    <title>Le�r�s</title>
+     <methodsynopsis>
+      <type>array</type><methodname>getdate</methodname>
+      <methodparam 
+choice="opt"><type>int</type><parameter>timestamp</parameter></methodparam>
+     </methodsynopsis>
+    <para>
+     A <parameter>timestamp</parameter>-ben megadott id�pontr�l (vagy a jelen
+     pillanatr�l, ha nincs id�pont megadva) ad inform�ci�t asszociat�v t�mb
+     form�j�ban. A k�vetkez� elemeket tartalmazza:
+     <itemizedlist>
+      <listitem>
+       <simpara>
+        "seconds" - m�sodperc
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        "minutes" - perc
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        "hours" - �ra
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        "mday" - nap
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        "wday" - h�t napja, sz�mmal (Vas�rnap a 0, szombat a 6)
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        "mon" - h�nap, sz�mmal
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        "year" - �v, sz�mmal [mi�rt, m�ssal is lehet?]
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        "yday" - janu�r 1 �ta eltelt napok sz�ma, sz�mmal [detto]; pl.: "299"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        "weekday" - h�t napja, sz�mmal, full; pl.: "Friday"
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        "month" - h�nap, bet�vel, teljes; pl.: "January"
+       </simpara>
+      </listitem>
+     </itemizedlist>
+     <example>
+      <title>
+       <function>getdate</function> p�lda
+      </title>
+      <programlisting role="php">
+<![CDATA[
+$today = getdate();
+$month = $today['month'];
+$mday = $today['mday'];
+$year = $today['year'];
+echo "$month $mday, $year";
+]]>
+      </programlisting>
+     </example>
+    </para>
+   </refsect1>
+  </refentry>
+
+  <refentry id="function.gettimeofday">
+   <refnamediv>
+    <refname>gettimeofday</refname>
+    <refpurpose>Aktu�lis id� lek�r�se[???]</refpurpose>
+   </refnamediv>
+   <refsect1>
+    <title>Le�r�s</title>
+     <methodsynopsis>
+      <type>array</type><methodname>gettimeofday</methodname>
+      <void/>
+     </methodsynopsis>
+    <para>
+     Ez egy fel�let a gettimeofday(2)-h�z. Egy asszociat�v t�mbbel t�r vissza,
+     tartalmazza a rendszerh�v�sb�l sz�rmaz� adatokat [??]
+     <itemizedlist>
+      <listitem>
+       <simpara>
+        "sec" - m�sodperc
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        "usec" - mikroszekundum ["mikrom�sodperc"]
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        "minuteswest" - h�ny percet kell hozz�adni a helyi id�h�z, hogy a Greenwichit 
+kapjuk
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        "dsttime" - ny�ri id�sz�m�t�si korrekci� t�pusa [???]
+       </simpara>
+      </listitem>
+     </itemizedlist>
+    </para>
+   </refsect1>
+  </refentry>
+
+  <refentry id="function.gmdate">
+   <refnamediv>
+    <refname>gmdate</refname>
+    <refpurpose>Egy GMT/CUT id�ponttal t�r vissza</refpurpose>
+   </refnamediv>
+   <refsect1>
+    <title>Le�r�s</title>
+     <methodsynopsis>
+      <type>string</type><methodname>gmdate</methodname>
+      <methodparam><type>string</type><parameter>format</parameter></methodparam>
+      <methodparam 
+choice="opt"><type>int</type><parameter>timestamp</parameter></methodparam>
+     </methodsynopsis>
+    <para>
+     Azonos a <function>date</function> f�ggv�nnyel, kiv�ve, hogy
+     az id�pont Greenwichi id� szerint van(GMT). P�ld�ul, ha Finnorsz�gban
+     fut (GMT +0200), az els� sor lent ki�rja, hogy
+     "Jan 01 1998 00:00:00", m�g a m�sodik pedig azt, hogy "Dec 31 1997 22:00:00".
+     <example>
+      <title><function>gmdate</function> p�lda</title>
+      <programlisting role="php">
+<![CDATA[
+echo date ("M d Y H:i:s", mktime (0,0,0,1,1,1998));
+echo gmdate ("M d Y H:i:s", mktime (0,0,0,1,1,1998));
+]]>
+      </programlisting>
+     </example>
+    </para>
+    <para>
+     L�sd m�g a <function>date</function>, <function>mktime</function>,
+     <function>gmmktime</function> �s a <function>strftime</function> f�ggv�nyeket.
+    </para>
+   </refsect1>
+  </refentry>
+
+  <refentry id="function.gmmktime">
+   <refnamediv>
+    <refname>gmmktime</refname>
+    <refpurpose>GMT form�tum� UNIX id�b�lyeggel t�r vissza</refpurpose>
+   </refnamediv>
+   <refsect1>
+    <title>Le�r�s</title>
+     <methodsynopsis>
+      <type>int</type><methodname>gmmktime</methodname>
+      <methodparam><type>int</type><parameter>hour</parameter></methodparam>
+      <methodparam><type>int</type><parameter>minute</parameter></methodparam>
+      <methodparam><type>int</type><parameter>second</parameter></methodparam>
+      <methodparam><type>int</type><parameter>month</parameter></methodparam>
+      <methodparam><type>int</type><parameter>day</parameter></methodparam>
+      <methodparam><type>int</type><parameter>year</parameter></methodparam>
+      <methodparam 
+choice="opt"><type>int</type><parameter>is_dst</parameter></methodparam>
+     </methodsynopsis>
+    <para>
+     Azonos a <function>mktime</function> f�ggv�nnyel, kiv�ve,
+     hogy az �tadott param�terek GMT id�pontk�nt �rtelmezettek.
+    </para>
+   </refsect1>
+  </refentry>
+
+  <refentry id="function.gmstrftime">
+   <refnamediv>
+    <refname>gmstrftime</refname>
+    <refpurpose>
+     Az aktu�lis helyi id�b�l sz�m�tott GMT/CUT id�pontot ad vissza.
+    </refpurpose>
+   </refnamediv>
+   <refsect1>
+    <title>Le�r�s</title>
+     <methodsynopsis>
+      <type>string</type><methodname>gmstrftime</methodname>
+      <methodparam><type>string</type><parameter>format</parameter></methodparam>
+      <methodparam 
+choice="opt"><type>int</type><parameter>timestamp</parameter></methodparam>
+     </methodsynopsis>
+    <para>
+     A <function>strftime</function>-hoz hasonl�an viselkedik, kiv�ve, hogy
+     a f�ggv�ny �ltal visszaadott id�pont GMT form�tumban van.
+     P�ld�ul, ha "Keleti Standard Id�"-ben(GMT -0500) vagyunk, a k�vetkez� sor
+     ki�rja, hogy "Dec 31 1998 20:00:00", m�g a m�sodik azt �rja ki, hogy
+     "Jan 01 1999 01:00:00".
+     <example>
+      <title><function>gmstrftime</function> p�lda</title>
+      <programlisting role="php">
+<![CDATA[
+setlocale ('LC_TIME', 'en_US');
+echo strftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";
+echo gmstrftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";
+]]>
+      </programlisting>
+     </example>
+    </para>
+    <para>
+     L�sd m�g a <function>strftime</function> f�ggv�nyt.
+    </para>
+   </refsect1>
+  </refentry>
+
+  <refentry id="function.localtime">
+   <refnamediv>
+    <refname>localtime</refname>
+    <refpurpose>Helyi id�pontot �ll�t el�</refpurpose>
+   </refnamediv>
+   <refsect1>
+    <title>Le�r�s</title>
+     <methodsynopsis>
+      <type>array</type><methodname>localtime</methodname>
+      <methodparam choice="opt"><type>int</type><parameter>
+        timestamp
+       </parameter></methodparam>
+      <methodparam choice="opt"><type>bool</type><parameter>
+        is_associative
+       </parameter></methodparam>
+     </methodsynopsis>
+    <para>
+     A <function>localtime</function> f�ggv�ny egy t�mb�t ad vissza,
+     ugyanolyan szerkezetben, mint azt a C nyelvbeli f�ggv�nyh�v�s teszi.
+     A <function>localtime</function> f�ggv�ny els� argumentuma az id�b�lyeg;
+     ha nincs megadva, az aktu�lis id�t haszn�lja.
+     A m�sodik argumentum az <parameter>is_associative</parameter>,
+     ha 0, vagy nincs megadva, hagyom�nyos t�mb�t (numerikusan indexelve)
+     kapunk vissza. Ha az argumentum 1, akkor a <function>localtime</function>
+     f�ggv�ny asszociat�v t�mb�t ad vissza, tartalmazva az �sszes elemet
+     olyan strukt�r�ban, amint azt a C f�ggv�nye is teszi a localtime f�ggv�nyben.
+     Az asszociat�v t�mb kulcsainak nevei a k�vetkez�k:
+     <itemizedlist>
+      <listitem>
+       <simpara>
+        "tm_sec" - m�sodperc
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        "tm_min" - perc
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        "tm_hour" - �ra
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        "tm_mday" - nap
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        "tm_mon" - h�nap (!!! A Janu�r 0 !!!)
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        "tm_year" - �v, az 1900 �ta eltelt �vek sz�ma
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        "tm_wday" - h�t napja
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        "tm_yday" - �v napja - 1
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        "tm_isdst" - ny�ri id�sz�m�t�s akt�v-e
+       </simpara>
+      </listitem>
+     </itemizedlist>
+    </para>
+   </refsect1>
+  </refentry>
+
+  <refentry id="function.microtime">
+   <refnamediv>
+    <refname>microtime</refname>
+    <refpurpose>
+     Az aktu�lis UNIX id�b�lyeget �ll�tja el� mikroszekundumban</refpurpose>
+   </refnamediv>
+   <refsect1>
+    <title>Le�r�s</title>
+     <methodsynopsis>
+      <type>string</type><methodname>microtime</methodname>
+      <void/>
+     </methodsynopsis>
+    <para>
+     Visszat�r egy stringgel, melynek form�ja "msec sec",
+     ahol sec az Unix Epoch (0:00:00 January 1, 1970 GMT) �ta eltelt m�sodpercek 
+sz�ma,
+     �s msec a mikroszekundumok sz�ma. Ez a f�ggv�ny csak olyan oper�ci�s rendszereken
+     el�rhet�, amely t�mogatja a gettimeofday() rendszerh�v�st.
+    </para>
+    <para>
+     Mindk�t r�szt m�sodpercben kapod meg.
+     <example>
+      <title><function>microtime</function> example</title>
+      <programlisting role="php">
+<![CDATA[
+function getmicrotime(){
+    list($usec, $sec) = explode(" ",microtime());
+    return ((float)$usec + (float)$sec);
+    }
+
+$time_start = getmicrotime();
+
+for ($i=0; $i < 1000; $i++){
+  // helyben j�runk 1000-szer
+}
+
+$time_end = getmicrotime();
+$time = $time_end - $time_start;
+
+echo "Helyben j�rtunk $time m�sodpercig";
+]]>
+      </programlisting>
+     </example>
+    </para>
+    <para>
+     L�sd m�g <function>time</function> f�ggv�nyt.
+    </para>
+   </refsect1>
+  </refentry>
+
+  <refentry id="function.mktime">
+   <refnamediv>
+    <refname>mktime</refname>
+    <refpurpose>Egy id�pont UNIX id�b�lyeg�t �ll�tja el�</refpurpose>
+   </refnamediv>
+   <refsect1>
+    <title>Le�r�s</title>
+     <methodsynopsis>
+      <type>int</type><methodname>mktime</methodname>
+      <methodparam><type>int</type><parameter>hour</parameter></methodparam>
+      <methodparam><type>int</type><parameter>minute</parameter></methodparam>
+      <methodparam><type>int</type><parameter>second</parameter></methodparam>
+      <methodparam><type>int</type><parameter>month</parameter></methodparam>
+      <methodparam><type>int</type><parameter>day</parameter></methodparam>
+      <methodparam><type>int</type><parameter>year</parameter></methodparam>
+      <methodparam 
+choice="opt"><type>int</type><parameter>is_dst</parameter></methodparam>
+     </methodsynopsis>
+    <para>
+     <emphasis>Figyelj�!!!</emphasis> N�zd meg, hogy az argumentumok sorrendje
+     nem �ppen szok�sos, mert k�l�nb�zik a hagyom�nyos UNIX-os mktime()-�t�l, ez�rt
+     nem igaz�n alkalmas arra, hogy lehagyd az utols� n�h�ny param�tert.
+     Gyakori hiba scriptekben az argumentumok felcser�l�se.
+    </para>
+    <para>
+     Az argumentumok �ltal megadott id�pont UNIX id�b�lyeg�t adja.
+     Ez tulajdonk�ppen egy nagy eg�sz sz�m, a Unix Epoch (1970 Janu�r 1.) �s
+     az adott id� k�zt eltelt m�sodpercek sz�ma.
+    </para>
+    <para>
+     Jobbr�l elhagyhatsz argumentumokat; ezeket a php az aktu�lis helyi d�tum �s id� 
+alapj�n p�tolja.
+    </para>
+    <para>
+     Az <parameter>Is_dst</parameter> param�tert �ll�thatod 1-re, jelezve,
+     hogy a ny�ri id�sz�m�t�sban vagy, 0-ra, hogy nem, vagy -1-re (ez az 
+alap�rtelmezett),
+     ha nem tudod.
+    </para>
+    <note>
+     <para>
+      Az <parameter>Is_dst</parameter> param�ter a 3.0.10.-es verzi�ban ker�lt a 
+nyelvbe.
+     </para>
+    </note>
+    <para>
+     A <function>mktime</function> f�ggv�ny hasznos a d�tumokkal val� manipul�l�s,
+     illetve d�tumellen�rz�s sor�n, mivel automatikusan "korrekt" d�tumm� konvert�lja
+     a helytelen�l megadott bemenetet.P�ldaul, az al�bbi sorok mindegyike azt �rja 
+ki, hogy
+     "Jan-01-1998".
+     <example>
+      <title><function>mktime</function> p�lda</title>
+      <programlisting role="php">
+<![CDATA[
+echo date ("M-d-Y", mktime (0,0,0,12,32,1997));
+echo date ("M-d-Y", mktime (0,0,0,13,1,1997));
+echo date ("M-d-Y", mktime (0,0,0,1,1,1998));
+echo date ("M-d-Y", mktime (0,0,0,1,1,98));
+]]>
+      </programlisting>
+     </example>
+     A <parameter>year</parameter> 2 vagy 4 jegy� sz�m is lehet,
+     ha �rt�ke 0-69 k�z�tt van, akkor a g�p 2000-2069 k�z� teszi,
+     ha 70-99 k�z�tt van, 1970-1999-be rakja.
+     (Azon rendszereken, ahol a time_t 32 bites eg�sz, ami manaps�g a legelterjedtebb,
+     a <parameter>year</parameter> param�ter helyes �rt�ke kb. 1902 �s 2037 k�z�tt 
+van).
+    </para>
+    <para>
+     Adott h�nap utols� napj�t a k�vetkez� h�nap "0." napj�val fejezhetj�k ki (NEM a 
+-1.-kel!!!).
+     Az al�bbi k�t p�lda mind azt �rja ki, hogy "2000 febru�rj�nak utols� napja: 29".
+     <example>
+      <title>Last day of next month</title>
+      <programlisting role="php">
+<![CDATA[
+$lastday = mktime (0,0,0,3,0,2000);
+echo strftime ("2000 febru�rj�nak utols� napja: %d", $lastday);
+
+$lastday = mktime (0,0,0,4,-31,2000);
+echo strftime ("2000 febru�rj�nak utols� napja: %d", $lastday);
+]]>
+      </programlisting>
+     </example>
+    </para>
+    <simpara>
+     Az olyan d�tum, amelyben az �v, h�nap, �s a nap is nulla, nem leg�lis
+     (m�sk�l�nben 1999. 11. 30.-�nak kellene tekinteni, ami furcsa viselked�s
+     lenne)
+    </simpara>
+    <para>
+     L�sd m�g a <function>date</function> �s a <function>time</function> f�ggv�nyeket.
+    </para>
+   </refsect1>
+  </refentry>
+
+  <refentry id="function.strftime">
+   <refnamediv>
+    <refname>strftime</refname>
+    <refpurpose>
+     Helyi id�stringet form�z a megadott form�tum (�s id�pont) szerint
+    </refpurpose>
+   </refnamediv>
+   <refsect1>
+    <title>Le�r�s</title>
+     <methodsynopsis>
+      <type>string</type><methodname>strftime</methodname>
+      <methodparam><type>string</type><parameter>format</parameter></methodparam>
+      <methodparam choice="opt"><type>int</type><parameter>
+        timestamp
+       </parameter></methodparam>
+     </methodsynopsis>
+    <para>
+     A megadott form�tumstringnek megfelel�en form�zott d�tum-stringgel t�r vissza,
+     felhaszn�lva a megadott <parameter>timestamp</parameter> param�tert, vagy ennek
+     hi�ny�ban a helyi id�t. H�nap, �s napnevek, tov�bb� m�s nyelvf�gg� stringek az
+     <function>setlocale</function> f�ggv�nnyel be�ll�tott �rt�keknek felelnek meg.
+    </para>
+    <para>
+     Az al�bbi form�tumstringeket ismeri fel a f�ggv�ny:
+     <itemizedlist>
+      <listitem>
+       <simpara>
+        %a - h�t napja, r�vid�tve
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %A - h�t napja, teljes
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %b - h�nap neve, r�vid�tve
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %B - h�nap neve, teljes
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %c - d�tum �s id� alap�rtelmezett form�tumban
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %C - �vsz�m 2 utols� jegy n�lk�l (trunc(�v/100), �rt�ke 00 �s 99 k�z�tt)
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %d - nap, 2 sz�mjegy ("01" .. "31")
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %D - azonos %m/%d/%y-val
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %e - nap, 2 karakter, extra sz�k�zzel az egyjegy� sz�mok el�tt
+        (" 1" .. "31")
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %g - mint a %G, csak �vsz�zad n�lk�l
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %G - A 4-jegy� �vsz�m, ami az ISO h�tsz�mhoz tartozik (l�sd a %V
+        opci�t). Ez azonos form�tum� �s �rt�k�, mint a %Y, kiv�ve, hogy ha az
+        ISO h�tsz�m az el�z�, vagy a k�vetkez� �vhez tartozik, akkor azzal az
+        �vet adja.
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %h - ugyanaz, mint a %b
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %H - �ra, 24-�r�s form�tumban, 2 sz�mjeggyel ("00" .. "23")
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %I - �ra, 12-�r�s form�tumban, 2 sz�mjeggyel ("01" .. "12")
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %j - �v napja, 3 sz�mjegy ("001" .. "366" !!!)
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %m - h�nap, sz�mmal ("01" .. "12") [van kit�lt� sz�k�z]
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %M - perc, [2 sz�mjegy]
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %n - �jsor karakter
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %p - `am' vagy `pm', annak megfelel�en, hogy az adott id�pont
+        d�lel�tt, vagy d�lut�n van-e
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %r - id�pont 12 �r�s form�tumban [pl.: 12:00:00 AM]
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %R - id�pont 24 �r�s form�tumban [pl.: 00:00][Itt nincs m�sodperc!!!]
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %S - m�sodperc [2 sz�mjegy]
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %t - tabul�tor
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %T - id�, azonos a %H:%M:%S-val
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %u - h�t napja, sz�mmal [1,7], az 1 a h�tf�t jelenti
+       </simpara>
+       <warning>
+        <simpara>
+         �gy t�nik, hogy Sun Solarison a vas�rnap az 1-es, holott az ISO
+         9889:1999 (az aktu�lis C standard) vil�gosan megmondja, hogy h�tf�nek
+         kell lennie.
+        </simpara>
+       </warning>
+      </listitem>
+      <listitem>
+       <simpara>
+        %U - az aktu�lis �v h�nyadik het�ben j�runk, a h�t vas�rnappal
+        kezd�dik, vagyis az "01" h�t janu�r els� vas�rnapj�n kezd�dik.
+        [Az els� h�t el�tti napokat "00" h�tnek jelzi!!!]
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %V - Az ISO 8601:1988 h�tsz�m ("01" .. 53), ahol az az els� h�t, amelynek 
+legal�bb
+        4 napja van az �j�vben. A h�t els� napja h�tf�. Haszn�ld a %G-t vagy a
+        %g-t, ha egy �v kell, ami egy id�b�lyeg h�tsz�m�hoz tartozik. [???]
+        [Helyesen kezeli az el�z� �vb�l �tny�l� heteket is]
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %W - �v hete, az �v els� h�tf�j�n kezd�dik az "01" h�t
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %w - h�t napja sz�mmal, a vas�rnap a 0
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %x - alap�rtelmezett d�tumform�tum id� n�lk�l
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %X - alap�rtelmezett id�pontform�tum d�tum n�lk�l
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %y - �v 2 sz�mjeggyel ("00" .. "99")
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %Y - �v, �vsz�zaddal egy�tt
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %Z - id�z�na neve [3 bet�]
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        %% - a `%' karakter
+       </simpara>
+      </listitem>
+     </itemizedlist>
+     <note>
+      <para>
+       Nem minden form�tumstring van meg az �sszes C k�nyvt�rban, ami azt
+       jelenti, hogy a PHP <function>strftime</function> f�ggv�ny�ben sem
+       lesznek el�rhet�k.
+      </para>
+     </note>
+     <example>
+      <title><function>strftime</function> p�lda</title>
+      <programlisting role="php">
+<![CDATA[
+setlocale (LC_TIME, "C");
+print (strftime ("A finn�l "));
+setlocale (LC_TIME", "fi_FI");
+print (strftime ("%A, franci�ul "));
+setlocale (LC_TIME, "fr_FR");
+print (strftime ("%A �s magyarul "));
+setlocale (LC_TIME, "hu_HU");
+print (strftime ("%A.\n"));
+]]>
+      </programlisting>
+     </example>
+     Ez a p�lda akkor m�k�dik j�l, ha a megfelel� locales be�ll�t�sokat install�lod.
+    </para>
+    <para>
+     L�sd m�g <function>setlocale</function> �s
+     <function>mktime</function> �s az
+     <ulink url="&spec.strftime;">
+      Open Group specification of <function>strftime()</function>
+     </ulink>
+     f�ggv�nyeket.
+    </para>
+   </refsect1>
+  </refentry>
+
+  <refentry id="function.time">
+   <refnamediv>
+    <refname>time</refname>
+    <refpurpose>Az aktu�lis UNIX id�b�lyeget sz�molja ki</refpurpose>
+   </refnamediv>
+   <refsect1>
+    <title>Le�r�s</title>
+     <methodsynopsis>
+      <type>int</type><methodname>time</methodname>
+      <void/>
+     </methodsynopsis>
+    <para>
+     A Unix Epoch (January 1 1970 00:00:00 GMT) �ta eltelt m�sodpercek sz�m�t adja 
+vissza.
+    </para>
+    <para>
+     L�sd m�g a <function>date</function> f�ggv�nyt.
+    </para>
+   </refsect1>
+  </refentry>
+
+  <refentry id="function.strtotime">
+   <refnamediv>
+    <refname>strtotime</refname>
+    <refpurpose>
+     Mindenf�le angol sz�veges id�pontot UNIX id�b�lyegg� alak�t
+    </refpurpose>
+   </refnamediv>
+   <refsect1>
+    <title>Le�r�s</title>
+     <methodsynopsis>
+      <type>int</type><methodname>strtotime</methodname>
+      <methodparam><type>string</type><parameter>time</parameter></methodparam>
+      <methodparam 
+choice="opt"><type>int</type><parameter>now</parameter></methodparam>
+     </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
+     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.
+    </simpara>
+    <simpara>
+     Mivel a <function>strtotime</function> f�ggv�ny a GNU d�tum szintaxisnak
+     megfelel�en viselkedik, n�zd meg a
+     <ulink url="&url.gnu.man.date-input;">Date Input Formats</ulink> c�m�
+     oldalakat a unix k�zik�nyvben (man). Ott le van �rva a
+     <parameter>time</parameter> param�ter pontos szintaxisa.
+    </simpara>
+    <para>
+     <example>
+      <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";
+]]>
+      </programlisting>
+     </example>
+    </para>
+    <para>
+     <example>
+      <title>Meghi�sul�s-pr�ba</title>
+      <programlisting role="php">
+<![CDATA[
+$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);
+}
+]]>
+      </programlisting>
+     </example>
+    </para>
+    <note>
+     <para>
+       Az id�pont �rv�nyes id�pontja tipikusan 1901 Dec. 13. 20:25:54 �s 2038.
+       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)
+     </para>
+    </note>
+   </refsect1>
+  </refentry>
+
+ </reference>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:"../../manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->
+


Reply via email to