|
The DatePeriod classIntroductionRepresents a date period. A date period allows iteration over a set of dates and times, recurring at regular intervals, over a given period. Class synopsis
DatePeriod
implements
IteratorAggregate
/* Constants */
public
const
int
DatePeriod::EXCLUDE_START_DATE;
public
const
int
DatePeriod::INCLUDE_END_DATE;
/* Properties */
public
readonly
DateTimeInterfacenull
$start;
public
readonly
DateTimeInterfacenull
$current;
public
readonly
DateTimeInterfacenull
$end;
public
readonly
DateIntervalnull
$interval;
public
readonly
int
$recurrences;
public
readonly
bool
$include_start_date;
public
readonly
bool
$include_end_date;
/* Methods */
public __construct(
DateTimeInterface $start ,DateInterval $interval ,int $recurrences ,int $options = 0) public __construct(
DateTimeInterface $start ,DateInterval $interval ,DateTimeInterface $end ,int $options = 0) public __construct(string
$isostr , int $options = 0)public static static createFromISO8601String(string
$specification , int $options = 0)public DateInterval getDateInterval()
public DateTimeInterfacenull getEndDate()
public intnull getRecurrences()
public DateTimeInterface getStartDate()
Predefined Constants
Properties
Changelog
|