update to latest php 5.1.0 RC

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@200727 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Nuno Lopes 2005-11-17 23:11:25 +00:00
parent 58ec97c645
commit 87ea796dba
2 changed files with 16 additions and 15 deletions

View file

@ -1,16 +1,17 @@
<?xml version='1.0' encoding='iso-8859-1'?>
<!-- $Revision: 1.3 $ -->
<!-- $Revision: 1.4 $ -->
<section id="datetime.constants">
&reftitle.constants;
<para>
The following constants are defined since PHP 5.1.0 and they offer standard
date representations, which can be used along with the date format functions
(like <function>date</function>).
(like <function>date</function>). These are static constants of the
<classname>date</classname> class.
</para>
<variablelist>
<varlistentry>
<term>
<constant>DATE_ATOM</constant>
<constant>date::ATOM</constant>
(<type>string</type>)
</term>
<listitem>
@ -21,7 +22,7 @@
</varlistentry>
<varlistentry>
<term>
<constant>DATE_COOKIE</constant>
<constant>date::COOKIE</constant>
(<type>string</type>)
</term>
<listitem>
@ -32,7 +33,7 @@
</varlistentry>
<varlistentry>
<term>
<constant>DATE_ISO8601</constant>
<constant>date::ISO8601</constant>
(<type>string</type>)
</term>
<listitem>
@ -43,7 +44,7 @@
</varlistentry>
<varlistentry>
<term>
<constant>DATE_RFC822</constant>
<constant>date::RFC822</constant>
(<type>string</type>)
</term>
<listitem>
@ -54,7 +55,7 @@
</varlistentry>
<varlistentry>
<term>
<constant>DATE_RFC850</constant>
<constant>date::RFC850</constant>
(<type>string</type>)
</term>
<listitem>
@ -65,7 +66,7 @@
</varlistentry>
<varlistentry>
<term>
<constant>DATE_RFC1036</constant>
<constant>date::RFC1036</constant>
(<type>string</type>)
</term>
<listitem>
@ -76,7 +77,7 @@
</varlistentry>
<varlistentry>
<term>
<constant>DATE_RFC1123</constant>
<constant>date::RFC1123</constant>
(<type>string</type>)
</term>
<listitem>
@ -87,7 +88,7 @@
</varlistentry>
<varlistentry>
<term>
<constant>DATE_RFC2822</constant>
<constant>date::RFC2822</constant>
(<type>string</type>)
</term>
<listitem>
@ -98,7 +99,7 @@
</varlistentry>
<varlistentry>
<term>
<constant>DATE_RSS</constant>
<constant>date::RSS</constant>
(<type>string</type>)
</term>
<listitem>
@ -109,7 +110,7 @@
</varlistentry>
<varlistentry>
<term>
<constant>DATE_W3C</constant>
<constant>date::W3C</constant>
(<type>string</type>)
</term>
<listitem>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.25 $ -->
<!-- $Revision: 1.26 $ -->
<!-- splitted from ./en/functions/datetime.xml, last change in rev 1.2 -->
<refentry id="function.date">
<refnamediv>
@ -312,10 +312,10 @@ echo "July 1, 2000 is on a " . date("l", mktime(0, 0, 0, 7, 1, 2000));
/* use the constants in the format parameter */
// prints something like: Mon, 15 Aug 2005 15:12:46 UTC
echo date(DATE_RFC822);
echo date(date::RFC822);
// prints something like: 2000-07-01T00:00:00+0000
echo date(DATE_ATOM, mktime(0, 0, 0, 7, 1, 2000));
echo date(date::ATOM, mktime(0, 0, 0, 7, 1, 2000));
?>
]]>
</programlisting>