cvs: phpdoc-ro /reference/datetime/functions gmdate.xml
| From: | Simion Onea | Date: | Sat, 24 May 2008 09:12:33 +0000 |
| Subject: | cvs: phpdoc-ro /reference/datetime/functions gmdate.xml | ||
| Groups: | php.doc.ro | ||
| Request: | Send a blank email to doc-ro+get-448@lists.php.net to get a copy of this message | ||
simionea Sat May 24 09:12:33 2008 UTC
Modified files:
/phpdoc-ro/reference/datetime/functions gmdate.xml
Log:
Updated the file.
http://cvs.php.net/viewvc.cgi/phpdoc-ro/reference/datetime/functions/gmdate.xml?r1=1.3&r2=1.4&diff_format=u
Index: phpdoc-ro/reference/datetime/functions/gmdate.xml
diff -u phpdoc-ro/reference/datetime/functions/gmdate.xml:1.3
phpdoc-ro/reference/datetime/functions/gmdate.xml:1.4
--- phpdoc-ro/reference/datetime/functions/gmdate.xml:1.3 Tue Sep 18 13:46:29 2007
+++ phpdoc-ro/reference/datetime/functions/gmdate.xml Sat May 24 09:12:33 2008
@@ -1,37 +1,125 @@
-<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.0 Maintainer: adiju Status: outdated -->
-<!-- splitted from ./ro/functions/datetime.xml, last change in rev 1.1 -->
-<!-- last change to 'gmdate' in en/ tree in rev 1.2 -->
- <refentry xml:id="function.gmdate" xmlns="http://docbook.org/ns/docbook">
- <refnamediv>
- <refname>gmdate</refname>
- <refpurpose>Formateazã data/timpul GMT/CUT</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Descriere</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>
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 1.4 $ -->
+<!-- EN-Revision: 1.13 Maintainer: simionea Status: translated -->
+<!-- CREDITS: adiju -->
+<refentry xml:id="function.gmdate" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>gmdate</refname>
+ <refpurpose>FormateazÄ o datÄ/orÄ GMT/UTC</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <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>
+ IdenticÄ cu funcÅ£ia <function>date</function> cu excepÅ£ia cÄ ora
întoarsÄ
+ este dupÄ Greenwich Mean Time (GMT) - Ora Medie Greenwich.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>format</parameter></term>
+ <listitem>
+ <para>
+ Formatul în care va fi afiÅat <type>string</type>-ul datei. VedeÅ£i
+ opţiunile de formatare pentru funcţia <function>date</function>.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ &date.timestamp.description;
+
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Ãntoarce un string cu data formatatÄ. DacÄ este utilizatÄ o valoare
+ non-numericÄ pentru <parameter>timestamp</parameter>, este întors
+ &false; Åi o eroare de nivel <literal>E_WARNING</literal> este emisÄ.
+ </para>
+ </refsect1>
+
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <para>
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>5.1.0</entry>
+ <entry>
+ Domeniul valid al unui timestamp este de obicei de la Fri, 13 Dec 1901
+ 20:45:54 GMT pânÄ la Tue, 19 Jan 2038 03:14:07 GMT. (Acestea sunt datele
+ ce corespund valorilor minimÄ Åi maximÄ a unui integer pe 32 de biÅ£i).
+ ÃnsÄ pânÄ la PHP 5.1.0 acest domeniu era limitat de la 01-01-1970 pânÄ
+ la 19-01-2038 pe unele sisteme (de ex. Windows).
+ </entry>
+ </row>
+ <row>
+ <entry>5.1.1</entry>
+ <entry>
+ ExistÄ <link linkend="datetime.constants">constante</link> utile a
+ unor formate standarde ale datei/orei ce pot fi utilizate pentru a
+ specifica parametrul <parameter>format</parameter>.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>Exemple <function>gmdate</function></title>
<para>
- Este identicã cu funcþia <function>date</function> cu excepþia faptului cã
timpul rezultat este Greenwich Mean Time (GMT). De exemplu, când este rulat în Romania (GMT
+0300), prima linie de mai jos va afiºa "Jan 01 1998 00:00:00", în vreme ce a doua va
afiºa "Dec 31 1997 22:00:00".
- <example>
- <title>Exemplu <function>gmdate</function></title>
- <programlisting role="php">
+ Când exemplul este rulat în Finlanda (GMT +0200), prima linie de mai jos
+ afiÅeazÄ "Jan 01 1998 00:00:00", în timp ce a doua afiÅeazÄ
+ "Dec 31 1997 22:00:00".
+ </para>
+ <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));
+<?php
+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>
- Vezi, de asemenea, <function>date</function>,
<function>mktime</function>,
- <function>gmmktime</function> ºi <function>strftime</function>
- </para>
- </refsect1>
- </refentry>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>date</function></member>
+ <member><function>mktime</function></member>
+ <member><function>gmmktime</function></member>
+ <member><function>strftime</function></member>
+ </simplelist>
+ </para>
+ </refsect1>
+</refentry>
<!-- Keep this comment at the end of the file
Local variables: