nlopess         Wed Jan  7 14:43:47 2004 EDT

  Modified files:              
    /phpdoc/en/reference/datetime/functions     checkdate.xml 
                                                gettimeofday.xml 
  Log:
  added example
  
Index: phpdoc/en/reference/datetime/functions/checkdate.xml
diff -u phpdoc/en/reference/datetime/functions/checkdate.xml:1.4 
phpdoc/en/reference/datetime/functions/checkdate.xml:1.5
--- phpdoc/en/reference/datetime/functions/checkdate.xml:1.4    Mon Dec 15 13:41:59 
2003
+++ phpdoc/en/reference/datetime/functions/checkdate.xml        Wed Jan  7 14:43:47 
2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
 <!-- splitted from ./en/functions/datetime.xml, last change in rev 1.2 -->
   <refentry id="function.checkdate">
    <refnamediv>
@@ -39,6 +39,28 @@
      </itemizedlist>
     </para>
     <para>
+     <example>
+      <title><function>checkdate</function> example</title>
+      <programlisting role="php">
+<![CDATA[
+<?php
+var_dump(checkdate(12, 31, 2000));
+var_dump(checkdate(2, 29, 2001));
+?>
+]]>
+      </programlisting>
+      <para>
+       The above example will output:
+      </para>
+      <screen>
+<![CDATA[
+bool(true)
+bool(false)
+]]>
+      </screen>
+     </example>
+    </para>
+    <para>
      See also <function>mktime</function> and <function>strtotime</function>.
     </para>
    </refsect1>
Index: phpdoc/en/reference/datetime/functions/gettimeofday.xml
diff -u phpdoc/en/reference/datetime/functions/gettimeofday.xml:1.2 
phpdoc/en/reference/datetime/functions/gettimeofday.xml:1.3
--- phpdoc/en/reference/datetime/functions/gettimeofday.xml:1.2 Wed Apr 17 02:37:10 
2002
+++ phpdoc/en/reference/datetime/functions/gettimeofday.xml     Wed Jan  7 14:43:47 
2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/datetime.xml, last change in rev 1.2 -->
   <refentry id="function.gettimeofday">
    <refnamediv>
@@ -39,6 +39,34 @@
       </listitem>
      </itemizedlist>
     </para>
+    <para>
+     <example>
+      <title>
+       <function>gettimeofday</function> example
+      </title>
+      <programlisting role="php">
+<![CDATA[
+<?php
+print_r(gettimeofday());
+?>
+]]>
+      </programlisting>
+      <para>
+       The output will look similar to:
+      </para>
+      <screen>
+<![CDATA[
+Array
+(
+    [sec] => 1073504408
+    [usec] => 238215
+    [minuteswest] => 0
+    [dsttime] => 1
+)
+]]>
+      </screen>
+     </example>
+    </para>
    </refsect1>
   </refentry>
 

Reply via email to