cvs: phpdoc-zh /reference/datetime/functions date.xml getdate.xml
| From: | Dallas Thunder | Date: | Sun, 17 Aug 2003 06:34:01 +0000 |
| Subject: | cvs: phpdoc-zh /reference/datetime/functions date.xml getdate.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1632@lists.php.net to get a copy of this message | ||
dallas Sun Aug 17 02:34:01 2003 EDT
Modified files:
/phpdoc-zh/reference/datetime/functions date.xml getdate.xml
Log:
Updated.
Index: phpdoc-zh/reference/datetime/functions/date.xml
diff -u phpdoc-zh/reference/datetime/functions/date.xml:1.7
phpdoc-zh/reference/datetime/functions/date.xml:1.8
--- phpdoc-zh/reference/datetime/functions/date.xml:1.7 Sun Aug 17 02:23:10 2003
+++ phpdoc-zh/reference/datetime/functions/date.xml Sun Aug 17 02:34:01 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<!-- $Author: dallas $ -->
<!-- EN-Revision: 1.9 Maintainer: dallas Status: ready -->
<refentry id="function.date">
@@ -12,9 +12,7 @@
<methodsynopsis>
<type>string</type><methodname>date</methodname>
<methodparam><type>string</type><parameter>format</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>
- timestamp
- </parameter></methodparam>
+ <methodparam
choice="opt"><type>int</type><parameter>timestamp</parameter></methodparam>
</methodsynopsis>
<para>
·µ»Ø½«ÕûÊý <parameter>timestamp</parameter>
Index: phpdoc-zh/reference/datetime/functions/getdate.xml
diff -u phpdoc-zh/reference/datetime/functions/getdate.xml:1.3
phpdoc-zh/reference/datetime/functions/getdate.xml:1.4
--- phpdoc-zh/reference/datetime/functions/getdate.xml:1.3 Sun Apr 20 02:22:53 2003
+++ phpdoc-zh/reference/datetime/functions/getdate.xml Sun Aug 17 02:34:01 2003
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- $Author: dallas $ -->
-<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready -->
+<!-- EN-Revision: 1.8 Maintainer: dallas Status: ready -->
<refentry id="function.getdate">
<refnamediv>
<refname>getdate</refname>
@@ -19,7 +19,7 @@
</para>
<para>
<table>
- <title>ÒÔÏÂ×Ö·û¿É±» <parameter>format</parameter>
²ÎÊý×Ö·û´®Ê¶±ð</title>
+ <title>·µ»ØµÄ¹ØÁªÊý×éÖеļüÃûµ¥Ôª</title>
<tgroup cols="3">
<thead>
<row>
@@ -79,6 +79,17 @@
<entry>Ô·ݵÄÍêÕûÎı¾±íʾ</entry>
<entry><literal>January></literal> µ½
<literal>December</literal></entry>
</row>
+ <row>
+ <entry><literal>0</literal></entry>
+ <entry>
+ ×Ô´Ó Unix ¼ÍÔª¿ªÊ¼ÖÁ½ñµÄÃëÊý£¬ºÍ
<function>time</function>
+ µÄ·µ»ØÖµÒÔ¼°ÓÃÓÚ <function>date</function>
µÄÖµÀàËÆ¡£
+ </entry>
+ <entry>
+ ϵͳÏà¹Ø£¬µäÐÍֵΪ´Ó <literal>-2147483648</literal> µ½
+ <literal>2147483647</literal>¡£
+ </entry>
+ </row>
</tbody>
</tgroup>
</table>
@@ -91,15 +102,37 @@
<programlisting role="php">
<![CDATA[
<?php
-$today = getdate();
-$month = $today['month'];
-$mday = $today['mday'];
-$year = $today['year'];
-echo "$month $mday, $year";
+$today = getdate();
+print_r($today);
?>
]]>
</programlisting>
+ <para>
+ Êä³öÀàËÆÓÚ£º
+ </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>
+ ²Î¼û <function>date</function>£¬<function>time</function>
+ ºÍ <function>setlocale</function>¡£
</para>
</refsect1>
</refentry>