cvs: phpdoc-pl /reference/datetime/functions getdate.xml

From: Date: Thu, 17 Apr 2008 21:36:35 +0000
Subject: cvs: phpdoc-pl /reference/datetime/functions getdate.xml
Groups: php.doc.pl 
Request: Send a blank email to doc-pl+get-1336@lists.php.net to get a copy of this message
adi Thu Apr 17 21:36:35 2008 UTC Modified files: /phpdoc-pl/reference/datetime/functions getdate.xml Log: Update to en

http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/datetime/functions/getdate.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-pl/reference/datetime/functions/getdate.xml diff -u phpdoc-pl/reference/datetime/functions/getdate.xml:1.4 phpdoc-pl/reference/datetime/functions/getdate.xml:1.5 --- phpdoc-pl/reference/datetime/functions/getdate.xml:1.4 Sat Jun 23 13:29:30 2007 +++ phpdoc-pl/reference/datetime/functions/getdate.xml Thu Apr 17 21:36:35 2008 @@ -1,109 +1,189 @@ -<?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.2 Maintainer: qrak Status: ready --> -<!-- $Revision: 1.4 $ --> -<!-- splitted from ./en/functions/datetime.xml, last change in rev 1.2 --> - <refentry xml:id="function.getdate" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>getdate</refname> - <refpurpose>Pobiera informacjê o dacie/czasie</refpurpose> - </refnamediv> - <refsect1> - <title>Opis</title> - <methodsynopsis> - <type>array</type><methodname>getdate</methodname> - <methodparam choice="opt"><type>int</type><parameter>znacznik_czasu</parameter></methodparam> - </methodsynopsis> - <para> - Funkcja zwraca tablicê asocjacyjn± zawieraj±c± informacje o dacie podanej - jako <parameter>znacznik_czasu</parameter>, lub o aktualnej dacie, je¶li - nie podano ¿adnego znacznika czasu. Tablica zawiera nastêpuj±ce klucze: - <itemizedlist> - <listitem> - <simpara> - "seconds" - sekundy - </simpara> - </listitem> - <listitem> - <simpara> - "minutes" - minuty - </simpara> - </listitem> - <listitem> - <simpara> - "hours" - godziny - </simpara> - </listitem> - <listitem> - <simpara> - "mday" - dzieñ miesi±ca - </simpara> - </listitem> - <listitem> - <simpara> - "wday" - dzieñ tygodnia, liczbowo: od 0 - niedziela do 6 - sobota - </simpara> - </listitem> - <listitem> - <simpara> - "mon" - miesi±c, liczbowo - </simpara> - </listitem> - <listitem> - <simpara> - "year" - rok, liczbowo - </simpara> - </listitem> - <listitem> - <simpara> - "yday" - dzieñ roku, liczbowo, np. "299" - </simpara> - </listitem> - <listitem> - <simpara> - "weekday" - dzieñ tygodnia, tekstowo, pe³na nazwa, np. "Friday" - </simpara> - </listitem> - <listitem> - <simpara> - "month" - miesi±c, tekstowo, pe³na nazwa; np. "January" - </simpara> - </listitem> - </itemizedlist> - <example> - <title> - przyk³ady <function>getdate</function> - </title> - <programlisting role="php"> -<![CDATA[ -$dzisiaj = getdate(); -$miesi±c = $dzisiaj['month']; -$dzieñ = $dzisiaj['mday']; -$rok = $dzisiaj['year']; -echo "$miesi±c $dzieñ, $rok"; -]]> - </programlisting> - </example> - </para> - </refsect1> - </refentry> - -<!-- 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 -indent-tabs-mode:nil -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 ---> +<?xml version="1.0" encoding="iso-8859-2"?> +<!-- EN-Revision: 1.14 Maintainer: garbus Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- splitted from ./en/functions/datetime.xml, last change in rev 1.2 --> +<!-- CREDITS: qrak --> +<refentry xml:id="function.getdate" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>getdate</refname> + <refpurpose>Pobiera informacjê o dacie/czasie</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>array</type><methodname>getdate</methodname> + <methodparam choice="opt"><type>int</type><parameter>znacznik_czasu</parameter></methodparam> + </methodsynopsis> + <para> + Funkcja zwraca tablicê (<type>array</type>) asocjacyjn± zawieraj±c± informacje o dacie podanej + jako <parameter>znacznik_czasu</parameter>, lub o aktualnej dacie, je¶li + nie podano parametru <parameter>znacznik_czasu</parameter>. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + + &date.timestamp.description; + + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Zwraca asocjacyjn± tablicê (<type>array</type>) z informacjami zale¿nymi + od podanego parametru <parameter>timestamp</parameter>. Zwrócona tablica + zawiera nastêpuj±ce elementy: + </para> + <para> + <table> + <title>Klucze zwróconej tablicy asocjacyjnej</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Klucz</entry> + <entry>Opis</entry> + <entry>Przyk³ady zwracanych warto¶ci</entry> + </row> + </thead> + <tbody> + <row> + <entry><literal>"seconds"</literal></entry> + <entry>Ilo¶æ sekund</entry> + <entry><literal>0</literal> do <literal>59</literal></entry> + </row> + <row> + <entry><literal>"minutes"</literal></entry> + <entry>Liczba minut</entry> + <entry><literal>0</literal> do <literal>59</literal></entry> + </row> + <row> + <entry><literal>"hours"</literal></entry> + <entry>Ilo¶æ godzin</entry> + <entry><literal>0</literal> do <literal>23</literal></entry> + </row> + <row> + <entry><literal>"mday"</literal></entry> + <entry>Liczba bêd±ca dniem miesi±ca</entry> + <entry><literal>1</literal> do <literal>31</literal></entry> + </row> + <row> + <entry><literal>"wday"</literal></entry> + <entry>Dzieñ tygodnia w postacy cyfry</entry> + <entry><literal>0</literal> (dla Niedzieli) a¿ do <literal>6</literal> (dla Soboty)</entry> + </row> + <row> + <entry><literal>"mon"</literal></entry> + <entry>Miesi±c w postaci liczby</entry> + <entry><literal>1</literal> a¿ do <literal>12</literal></entry> + </row> + <row> + <entry><literal>"year"</literal></entry> + <entry>Pe³en rok w postaci liczby, 4 cyfry</entry> + <entry>Przyk³ady: <literal>1999</literal> lub <literal>2003</literal></entry> + </row> + <row> + <entry><literal>"yday"</literal></entry> + <entry>Dzieñ danego roku, w postaci liczby</entry> + <entry><literal>0</literal> a¿ do <literal>365</literal></entry> + </row> + <row> + <entry><literal>"weekday"</literal></entry> + <entry>Pe³na nazwa dnia tygodnia, w jêzyku angielskim</entry> + <entry><literal>Sunday</literal> a¿ do <literal>Saturday</literal></entry> + </row> + <row> + <entry><literal>"month"</literal></entry> + <entry>Pe³na nazwa miesi±ca, w jêzyku angielskim, jak np. January lub March</entry> + <entry><literal>January</literal> a¿ do <literal>December</literal></entry> + </row> + <row> + <entry><literal>0</literal></entry> + <entry> + Sekundy, które up³ynê³y od Ery Uniksa, podobnie jak warto¶æ zwracana przez + <function>time</function> i u¿yta przez funkcjê <function>date</function>. + </entry> + <entry> + Zale¿nie od systemu, zazwyczaj <literal>-2147483648</literal> a¿ do + <literal>2147483647</literal>. + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>getdate</function> - przyk³ad</title> + <programlisting role="php"> +<![CDATA[ +<?php +$dzisiaj = getdate(); +print_r($dzisiaj); +?> +]]> + </programlisting> + &example.outputs.similar; + <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> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>date</function></member> + <member><function>time</function></member> + <member><function>setlocale</function></member> + </simplelist> + </para> + </refsect1> +</refentry> + +<!-- 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 +indent-tabs-mode:nil +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 +-->
« previous php.doc.pl (#1336) next »