diff --git a/reference/datetime/constants.xml b/reference/datetime/constants.xml index e97ac0bd2a..b03b879abe 100755 --- a/reference/datetime/constants.xml +++ b/reference/datetime/constants.xml @@ -1,16 +1,17 @@ - +
&reftitle.constants; 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 date). + (like date). These are static constants of the + date class. - DATE_ATOM + date::ATOM (string) @@ -21,7 +22,7 @@ - DATE_COOKIE + date::COOKIE (string) @@ -32,7 +33,7 @@ - DATE_ISO8601 + date::ISO8601 (string) @@ -43,7 +44,7 @@ - DATE_RFC822 + date::RFC822 (string) @@ -54,7 +55,7 @@ - DATE_RFC850 + date::RFC850 (string) @@ -65,7 +66,7 @@ - DATE_RFC1036 + date::RFC1036 (string) @@ -76,7 +77,7 @@ - DATE_RFC1123 + date::RFC1123 (string) @@ -87,7 +88,7 @@ - DATE_RFC2822 + date::RFC2822 (string) @@ -98,7 +99,7 @@ - DATE_RSS + date::RSS (string) @@ -109,7 +110,7 @@ - DATE_W3C + date::W3C (string) diff --git a/reference/datetime/functions/date.xml b/reference/datetime/functions/date.xml index ba55f370b7..8b1d98dfb7 100644 --- a/reference/datetime/functions/date.xml +++ b/reference/datetime/functions/date.xml @@ -1,5 +1,5 @@ - + @@ -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)); ?> ]]>