cvs: phpdoc /en/reference/datetime/functions getdate.xml

From: Date: Mon, 23 Jun 2003 00:52:11 +0000
Subject: cvs: phpdoc /en/reference/datetime/functions getdate.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969354788@lists.php.net to get a copy of this message
philip Sun Jun 22 20:52:11 2003 EDT Modified files: /phpdoc/en/reference/datetime/functions getdate.xml Log: Use of xml tags, a typo, expanded example output, and see also's Index: phpdoc/en/reference/datetime/functions/getdate.xml diff -u phpdoc/en/reference/datetime/functions/getdate.xml:1.7 phpdoc/en/reference/datetime/functions/getdate.xml:1.8 --- phpdoc/en/reference/datetime/functions/getdate.xml:1.7 Wed Jun 11 17:39:31 2003 +++ phpdoc/en/reference/datetime/functions/getdate.xml Sun Jun 22 20:52:11 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- splitted from ./en/functions/datetime.xml, last change in rev 1.2 --> <refentry id="function.getdate"> <refnamediv> @@ -13,10 +13,10 @@ <methodparam choice="opt"><type>int</type><parameter>timestamp</parameter></methodparam> </methodsynopsis> <para> - Returns an associative array containing the date information of - the <parameter>timestamp</parameter>, or the current local time if - no timestamp is given, as the following associative array - elements: + Returns an associative <type>array</type> containing the date + information of the <parameter>timestamp</parameter>, or the current + local time if no <parameter>timestamp</parameter> is given, as the + following associative array elements: </para> <para> <table> @@ -78,7 +78,7 @@ <row> <entry><literal>"month"</literal></entry> <entry>A full textual representation of a month, such as January or March</entry> - <entry><literal>January></literal> through <literal>December</literal></entry> + <entry><literal>January</literal> through <literal>December</literal></entry> </row> <row> <entry><literal>0</literal></entry> @@ -100,14 +100,37 @@ <![CDATA[ <?php $today = getdate(); -$month = $today['month']; -$mday = $today['mday']; -$year = $today['year']; -echo "$month $mday, $year"; +print_r($today); ?> ]]> </programlisting> + <para> + The output will look similar to: + </para> + <screen> +<![CDATA[ +Array +( + [seconds] => 40 + [minutes] => 58 + [hours] => 21 + [mday] => 17 + [wday] => 2 + [mon] => 6 + [year] => 2003 + [yday] => 167 + [weekday] => Tuesday + [month] => June + [0] => 1055901520 +) +]]> + </screen> </example> + </para> + <para> + See also <function>date</function>, + <function>time</function>, and + <function>setlocale</function>. </para> </refsect1> </refentry>

« previous php.doc (#969354788) next »