(PHP 5 >= 5.3.0)
DatePeriod::__construct — Creates new DatePeriod object
$start
, DateInterval $interval
, int $recurrences
[, int $options
] )$start
, DateInterval $interval
, DateTime $end
[, int $options
] )$isostr
[, int $options
] )Creates new DatePeriod object.
start
Start date.
interval
Interval.
recurrences
Number of recurrences.
end
End date.
isostr
String containing the ISO interval.
options
Can be set to DatePeriod::EXCLUDE_START_DATE
.