svn: /phpdoc/it/trunk/reference/misc/functions/ sleep.xml
| From: | Marco Cucinato | Date: | Tue, 14 Apr 2015 11:20:38 +0000 |
| Subject: | svn: /phpdoc/it/trunk/reference/misc/functions/ sleep.xml | ||
| Groups: | php.doc.it | ||
| Request: | Send a blank email to doc-it+get-1841@lists.php.net to get a copy of this message | ||
cucinato Tue, 14 Apr 2015 11:20:38 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=336528
Log:
Sync with EN
Changed paths:
A phpdoc/it/trunk/reference/misc/functions/sleep.xml
Added: phpdoc/it/trunk/reference/misc/functions/sleep.xml
===================================================================
--- phpdoc/it/trunk/reference/misc/functions/sleep.xml (rev 0)
+++ phpdoc/it/trunk/reference/misc/functions/sleep.xml 2015-04-14 11:20:38 UTC (rev 336528)
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- EN-Revision: 305811 Maintainer: Federico Reghenzani Status: ready -->
+<refentry xml:id="function.sleep" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>sleep</refname>
+ <refpurpose>Pausa dell'esecuzione</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>int</type><methodname>sleep</methodname>
+
<methodparam><type>int</type><parameter>seconds</parameter></methodparam>
+ </methodsynopsis>
+ <simpara>
+ Mette in pausa l'esecuzione del programma per il numero indicato di
+ secondi.
+ </simpara>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>seconds</parameter></term>
+ <listitem>
+ <para>
+ Tempo di pausa in secondi.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Ritorna zero in caso di successo o &false; in caso di errore.
+ </para>
+ <para>
+ Se la chiamata viene interrotta da un segnale, <function>sleep</function> ritorna
+ un valore non-zero. Su Windows questo valore è sempre
+ <literal>192</literal> (cioè il valore di
+ <constant>WAIT_IO_COMPLETION</constant> nelle Windows API).
+ In altre piattaforme il valore di ritorno è il numero di secondi rimanenti di
+ pausa.
+ </para>
+ </refsect1>
+
+ <refsect1 role="errors">
+ &reftitle.errors;
+ <para>
+ Se <parameter>seconds</parameter> (cioè il numero di secondi specificato) è
negativo,
+ la funzione genera un errore <constant>E_WARNING</constant>.
+ </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.3.4</entry>
+ <entry>
+ Prima di PHP 5.3.4 in Windows, <function>sleep</function> ritorna
+ sempre &null; quando è eseguita, a prescindere dal fatto che sia stata
+ interrotta o meno.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>Esempio <function>sleep</function></title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+// current time
+echo date('h:i:s') . "\n";
+
+// sleep for 10 seconds
+sleep(10);
+
+// wake up !
+echo date('h:i:s') . "\n";
+
+?>
+]]>
+ </programlisting>
+ <para>
+ Questo esempio stampa (dopo 10 secondi)
+ </para>
+ <screen>
+<![CDATA[
+05:31:23
+05:31:33
+]]>
+ </screen>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>usleep</function></member>
+ <member><function>time_nanosleep</function></member>
+ <member><function>time_sleep_until</function></member>
+ <member><function>set_time_limit</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:"~/.phpdoc/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
+-->
Property changes on: phpdoc/it/trunk/reference/misc/functions/sleep.xml
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL