cvs: phpdoc-ro /reference/datetime/functions time.xml
| From: | Simion Onea | Date: | Sat, 24 May 2008 09:50:23 +0000 |
| Subject: | cvs: phpdoc-ro /reference/datetime/functions time.xml | ||
| Groups: | php.doc.ro | ||
| Request: | Send a blank email to doc-ro+get-451@lists.php.net to get a copy of this message | ||
simionea Sat May 24 09:50:23 2008 UTC
Modified files:
/phpdoc-ro/reference/datetime/functions time.xml
Log:
Updated the file.
http://cvs.php.net/viewvc.cgi/phpdoc-ro/reference/datetime/functions/time.xml?r1=1.3&r2=1.4&diff_format=u
Index: phpdoc-ro/reference/datetime/functions/time.xml
diff -u phpdoc-ro/reference/datetime/functions/time.xml:1.3
phpdoc-ro/reference/datetime/functions/time.xml:1.4
--- phpdoc-ro/reference/datetime/functions/time.xml:1.3 Tue Sep 18 13:46:29 2007
+++ phpdoc-ro/reference/datetime/functions/time.xml Sat May 24 09:50:23 2008
@@ -1,26 +1,74 @@
-<?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 'time' in en/ tree in rev 1.2 -->
- <refentry xml:id="function.time" xmlns="http://docbook.org/ns/docbook">
- <refnamediv>
- <refname>time</refname>
- <refpurpose>Returneazã valoarea UNIX timestamp curentã</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Descriere</title>
- <methodsynopsis>
- <type>int</type><methodname>time</methodname>
- <void/>
- </methodsynopsis>
- <para>
- Returneazã timpul curent mãsurat în numãr de secunde începând cu Epoca UNIX (1 ianuarie
1970 00:00:00 GMT).
- </para>
- <para>
- Vezi, de asemenea, <function>date</function>.
- </para>
- </refsect1>
- </refentry>
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 1.4 $ -->
+<!-- EN-Revision: 1.10 Maintainer: simionea Status: translated -->
+<!-- CREDITS: adiju -->
+<refentry xml:id="function.time" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>time</refname>
+ <refpurpose>Ãntoarce timpul curent Unix</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>int</type><methodname>time</methodname>
+ <void/>
+ </methodsynopsis>
+ <para>
+ Ãntoarce timpul curent mÄsurat în numÄrul de secunde de la Epoca Unix
+ (January 1 1970 00:00:00 GMT).
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>Exemplu <function>time</function></title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$nextWeek = time() + (7 * 24 * 60 * 60);
+ // 7 zile; 24 ore; 60 minute; 60 secunde
+echo 'Acum: '. date('Y-m-d') ."\n";
+echo 'SÄptÄmâna urmÄtoare: '. date('Y-m-d', $nextWeek)
."\n";
+// sau utilizând strtotime():
+echo 'SÄptÄmâna urmÄtoare: '. date('Y-m-d', strtotime('+1
week')) ."\n";
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
+Acum: 2005-03-30
+SÄptÄmâna urmÄtoare: 2005-04-06
+SÄptÄmâna urmÄtoare: 2005-04-06
+]]>
+ </screen>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="notes">
+ &reftitle.notes;
+ <tip>
+ <para>
+ Momentul de timp al începutului interpelÄrii este disponibil în
+ <varname>$_SERVER['REQUEST_TIME']</varname> începând cu PHP 5.1.
+ </para>
+ </tip>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>date</function></member>
+ <member><function>microtime</function></member>
+ </simplelist>
+ </para>
+ </refsect1>
+</refentry>
<!-- Keep this comment at the end of the file
Local variables: