Date/Time
PHP Manual

The DatePeriod class

(PHP 5 >= 5.3.0)

简介

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 {
/* 常量 */
const integer EXCLUDE_START_DATE = 1 ;
/* 方法 */
public __construct ( DateTime $start , DateInterval $interval , int $recurrences [, int $options ] )
public __construct ( DateTime $start , DateInterval $interval , DateTime $end [, int $options ] )
public __construct ( string $isostr [, int $options ] )
}

预定义常量

DatePeriod::EXCLUDE_START_DATE

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

Table of Contents


Date/Time
PHP Manual