Please wait while we load your page...
 

Announcements

PHP Manual :: The DatePeriod class



DateInterval::format || DatePeriod::__construct || Date/Time || PHP Manual

(PHP 5 >= 5.3.0, PHP 7)

Represents a date period.

A date period allows iteration over a set of dates and times, recurring at regular intervals, over a given period.

DatePeriod implements Traversable {
/* Constants */
const integer EXCLUDE_START_DATE = 1 ;
/* Methods */
public __construct ( DateTimeInterface $start , DateInterval $interval , int $recurrences [, int $options ] )
public __construct ( DateTimeInterface $start , DateInterval $interval , DateTimeInterface $end [, int $options ] )
public __construct ( string $isostr [, int $options ] )
public DateInterval getDateInterval ( void )
public DateTimeInterface getEndDate ( void )
public DateTimeInterface getStartDate ( void )
}
DatePeriod::EXCLUDE_START_DATE

Exclude start date, used in DatePeriod::__construct().



DateInterval::format || DatePeriod::__construct || Date/Time || PHP Manual
Live Chat Not Available