Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
League
Period
Period
add
League\Period\Period::add PHP Method
Period Class Documentation
Show file
Open project: thephpleague/period
add()
public
method
DEPRECATION WARNING! This method will be removed in the next major point release
Deprecation:
deprecated since version 3.3.0 The interval can be
a DateInterval object
an int interpreted as the duration expressed in seconds.
a string in a format supported by DateInterval::createFromDateString
public
add
(
DateInterva\DateInterval |
integer
|
string
$interval
) :
static
$interval
DateInterva\DateInterval |
integer
|
string
The interval
return
static
public function add($interval) { return $this->moveEndDate($interval); }
Period
__construct
__set_state
__toString
abuts
add
compareDuration
contains
containsDatePoint
containsPeriod
convertDateTime
createFromDatepoints
createFromDay
createFromDuration
createFromDurationBeforeEnd
createFromMonth
createFromQuarter
createFromSemester
createFromWeek
createFromYear
createFromYearInterval
dateIntervalDiff
diff
durationGreaterThan
durationLessThan
endingOn
filterDateInterval
filterDatePoint
gap
getDateInterval
getDatePeriod
getEndDate
getStartDate
getTimestampInterval
intersect
isAfter
isBefore
jsonSerialize
merge
move
moveEndDate
moveStartDate
next
overlaps
previous
sameDurationAs
sameValueAs
split
startingOn
sub
timestampIntervalDiff
validateRange
validateYear
withDuration
withDurationBeforeEnd