nlopess         Sun Oct 24 13:07:12 2004 EDT

  Modified files:              
    /phpdoc/en/reference/datetime/functions     gettimeofday.xml 
  Log:
  document the new optional parameter
  
http://cvs.php.net/diff.php/phpdoc/en/reference/datetime/functions/gettimeofday.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/reference/datetime/functions/gettimeofday.xml
diff -u phpdoc/en/reference/datetime/functions/gettimeofday.xml:1.3 
phpdoc/en/reference/datetime/functions/gettimeofday.xml:1.4
--- phpdoc/en/reference/datetime/functions/gettimeofday.xml:1.3 Wed Jan  7 14:43:47 
2004
+++ phpdoc/en/reference/datetime/functions/gettimeofday.xml     Sun Oct 24 13:07:11 
2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <!-- splitted from ./en/functions/datetime.xml, last change in rev 1.2 -->
   <refentry id="function.gettimeofday">
    <refnamediv>
@@ -8,18 +8,27 @@
    </refnamediv>
    <refsect1>
     <title>Description</title>
-     <methodsynopsis>
-      <type>array</type><methodname>gettimeofday</methodname>
-      <void/>
-     </methodsynopsis>
+    <methodsynopsis>
+     <type>mixed</type><methodname>gettimeofday</methodname>
+     <methodparam 
choice="opt"><type>bool</type><parameter>return_float</parameter></methodparam>
+    </methodsynopsis>
     <para>
      This is an interface to gettimeofday(2). It returns an
      associative array containing the data returned from the system
      call.
+    </para>
+    <para>
+     Since PHP 5.1.0 there is an optional parameter,
+     <parameter>return_float</parameter>, which makes
+     <function>gettimeofday</function> return a float when it is set to
+     &true;.
+    </para>
+    <para>
+     Array keys:
      <itemizedlist>
       <listitem>
        <simpara>
-        "sec" - seconds
+        "sec" - seconds since the Unix Epoch
        </simpara>
       </listitem>
       <listitem>
@@ -48,6 +57,8 @@
 <![CDATA[
 <?php
 print_r(gettimeofday());
+
+echo gettimeofday(true);
 ?>
 ]]>
       </programlisting>
@@ -63,6 +74,8 @@
     [minuteswest] => 0
     [dsttime] => 1
 )
+
+1073504408.23910
 ]]>
       </screen>
      </example>

Reply via email to