cvs: phpdoc-hu /reference/datetime/functions getdate.xml
| From: | Bagi Levente L�szl� | Date: | Mon, 26 Jul 2004 11:36:22 +0000 |
| Subject: | cvs: phpdoc-hu /reference/datetime/functions getdate.xml | ||
| Groups: | php.doc.hu | ||
| Request: | Send a blank email to doc-hu+get-676@lists.php.net to get a copy of this message | ||
bagilevi Mon Jul 26 07:36:22 2004 EDT
Modified files:
/phpdoc-hu/reference/datetime/functions getdate.xml
Log:
sync
http://cvs.php.net/diff.php/phpdoc-hu/reference/datetime/functions/getdate.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc-hu/reference/datetime/functions/getdate.xml
diff -u phpdoc-hu/reference/datetime/functions/getdate.xml:1.2
phpdoc-hu/reference/datetime/functions/getdate.xml:1.3
--- phpdoc-hu/reference/datetime/functions/getdate.xml:1.2 Wed Apr 17 02:57:56 2002
+++ phpdoc-hu/reference/datetime/functions/getdate.xml Mon Jul 26 07:36:22 2004
@@ -1,7 +1,8 @@
-<?xml version="1.0" encoding="iso-8859-2"?>
+<?xml version="1.0" encoding="iso-8859-1"?>
<!-- splitted from ./hu/functions/datetime.xml, last change in rev 1.1 -->
<!-- last change to 'getdate' in en/ tree in rev 1.2 -->
-<!-- EN-Revision: 1.2 Maintainer: kgergely Status: ready -->
+<!-- EN-Revision: 1.8 Maintainer: kgergely Status: ready -->
+<!-- CREDITS: bagilevi -->
<!-- OLD-Revision: 1.69/EN.1.2 -->
<refentry id="function.getdate">
<refnamediv>
@@ -16,74 +17,123 @@
</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>
+ pillanatról, ha a <parameter>timestamp</parameter> nincs megadva)
+ ad információt asszociatív tömb formájában. A következõ elemeket tartalmazza:
+ </para>
+ <para>
+ <table>
+ <title>A visszatérített asszociatív tömb elemei</title>
+ <tgroup cols="3">
+ <thead>
+ <row>
+ <entry>Kulcs</entry>
+ <entry>Leírás</entry>
+ <entry>Példák visszaadott értékekre</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><literal>"seconds"</literal></entry>
+ <entry>A másodpercek számreprezentációja</entry>
+ <entry><literal>0</literal>-tól
<literal>59</literal>-ig</entry>
+ </row>
+ <row>
+ <entry><literal>"minutes"</literal></entry>
+ <entry>Percek számreprezentációja</entry>
+ <entry><literal>0</literal>-tól
<literal>59</literal>-ig</entry>
+ </row>
+ <row>
+ <entry><literal>"hours"</literal></entry>
+ <entry>Órák számreprezentációja</entry>
+ <entry><literal>0</literal>-tól
<literal>23</literal>-ig</entry>
+ </row>
+ <row>
+ <entry><literal>"mday"</literal></entry>
+ <entry>A hónap napjának számreprezentációja</entry>
+ <entry><literal>1</literal>-tõl
<literal>31</literal>-ig</entry>
+ </row>
+ <row>
+ <entry><literal>"wday"</literal></entry>
+ <entry>A hét napának számreprezentációja</entry>
+ <entry><literal>0</literal>-tól (vasárnap)
<literal>6</literal>-ig (szombat)</entry>
+ </row>
+ <row>
+ <entry><literal>"mon"</literal></entry>
+ <entry>A hónap számreprezentációja</entry>
+ <entry><literal>1</literal>-tõl
<literal>12</literal>-ig</entry>
+ </row>
+ <row>
+ <entry><literal>"year"</literal></entry>
+ <entry>Az év 4 számjegyes számreprezentációja</entry>
+ <entry>Példák: <literal>1999</literal>,
<literal>2003</literal></entry>
+ </row>
+ <row>
+ <entry><literal>"yday"</literal></entry>
+ <entry>Az év napjának számreprezentációja</entry>
+ <entry><literal>0</literal>-tól
<literal>366</literal>-ig</entry>
+ </row>
+ <row>
+ <entry><literal>"weekday"</literal></entry>
+ <entry>A hét napjának szöveges reprezentációja</entry>
+ <entry><literal>Sunday</literal>-tõl
<literal>Saturday</literal>-ig</entry>
+ </row>
+ <row>
+ <entry><literal>"month"</literal></entry>
+ <entry>A hónap szöveges reprezentációja</entry>
+ <entry><literal>January</literal>-tól
<literal>December</literal>-ig</entry>
+ </row>
+ <row>
+ <entry><literal>0</literal></entry>
+ <entry>A Unix korszak óta eltelt másodpercek száma, hasonlóan a
+ <function>time</function> által visszaadott, valamint a
<function>date</function>
+ által használt értékhez.</entry>
+ <entry>Rendszerfüggõ, tipikusan <literal>-2147483648</literal>-tól
+ <literal>2147483647</literal>-ig.</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </para>
+ <para>
<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";
+<?php
+$ma = getdate();
+print_r($ma);
+?>
]]>
</programlisting>
+ <para>
+ A kimenet valahogy így fog kinézni:
+ </para>
+ <screen>
+<![CDATA[
+Array
+(
+ [seconds] => 40
+ [minutes] => 58
+ [hours] => 21
+ [mday] => 17
+ [wday] => 2
+ [mon] => 6
+ [year] => 2003
+ [yday] => 167
+ [weekday] => Tuesday
+ [month] => June
+ [0] => 1055901520
+)
+]]>
+ </screen>
</example>
+ </para>
+ <para>
+ Lásd még: <function>date</function>,
+ <function>time</function>,
+ <function>setlocale</function>.
</para>
</refsect1>
</refentry>