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; + + + + + + +