array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'class.dateperiod.php', 1 => 'DatePeriod', ), 'up' => array ( 0 => 'book.datetime.php', 1 => 'Fecha/Hora', ), 'prev' => array ( 0 => 'dateinterval.format.php', 1 => 'DateInterval::format', ), 'next' => array ( 0 => 'dateperiod.construct.php', 1 => 'DatePeriod::__construct', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'es', 'path' => 'reference/datetime/dateperiod.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.dateperiod.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.3.0, PHP 7, PHP 8)
Representa un período de fechas.
Un período de fechas permite la iteración sobre un conjunto de fechas y horas, repitiéndose a intervalos regulares durante un período dado.
$start
,$interval
,$recurrences
,$options
= ?$start
,$interval
,$end
,$options
= ?DatePeriod::EXCLUDE_START_DATE
Excluir la fecha inicial, usado en DatePeriod::__construct().