Creates a new DatePeriod object.
The start date of the period.
The interval between recurrences within the period.
The number of recurrences. Must be greater than 0.
The end date of the period.
An ISO 8601 repeating interval specification. Zero occurrences (R0/) are not supported.
Can be set to DatePeriod::EXCLUDE_START_DATE to exclude the start date from the set of recurring dates within the period.
Unbound numbers of repetitions as specified by ISO 8601 section 4.5 "Recurring time interval" are not supported, i.e. neither passing "R/..." as isostr nor passing null as end would work.
|7.2.19, 7.3.6, 7.4.0||recurrences must be greater than 0 now.|