From 4174a16888bae1d16796214bf508097bd5a7d450 Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Fri, 20 Jul 2012 09:39:42 +0000 Subject: [PATCH] Fix doc bug #62486 (Missing documentation for DatePeriod). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326735 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/datetime/dateperiod.xml | 6 +- reference/datetime/dateperiod/construct.xml | 92 +++++++++++++++++++-- 2 files changed, 89 insertions(+), 9 deletions(-) diff --git a/reference/datetime/dateperiod.xml b/reference/datetime/dateperiod.xml index a30f2164ce..739c49f4f7 100644 --- a/reference/datetime/dateperiod.xml +++ b/reference/datetime/dateperiod.xml @@ -12,7 +12,11 @@
&reftitle.intro; - Representation of date period. + Represents a date period. + + + A date period allows iteration over a set of dates and times, recurring at + regular intervals, over a given period.
diff --git a/reference/datetime/dateperiod/construct.xml b/reference/datetime/dateperiod/construct.xml index 0b2ede37ca..5d41a565b6 100644 --- a/reference/datetime/dateperiod/construct.xml +++ b/reference/datetime/dateperiod/construct.xml @@ -4,7 +4,7 @@ DatePeriod::__construct - Creates new DatePeriod object + Creates a new DatePeriod object @@ -29,7 +29,7 @@ intoptions - Creates new DatePeriod object. + Creates a new DatePeriod object. @@ -41,7 +41,7 @@ start - Start date. + The start date of the period. @@ -49,7 +49,7 @@ interval - Interval. + The interval between recurrences within the period. @@ -57,7 +57,7 @@ recurrences - Number of recurrences. + The number of recurrences. @@ -65,7 +65,7 @@ end - End date. + The end date of the period. @@ -73,7 +73,7 @@ isostr - String containing the ISO interval. + An ISO 8601 repeating interval specification. @@ -81,7 +81,9 @@ options - Can be set to DatePeriod::EXCLUDE_START_DATE. + Can be set to DatePeriod::EXCLUDE_START_DATE to + exclude the start date from the set of recurring dates within the + period. @@ -89,6 +91,80 @@ + + &reftitle.examples; + + + DatePeriod example + +format('Y-m-d')."\n"; +} +?> +]]> + + &example.outputs; + + + + + + + + DatePeriod example with <constant>DatePeriod::EXCLUDE_START_DATE</constant> + +format('Y-m-d')."\n"; +} +?> +]]> + + &example.outputs; + + + + + + +