Toggle navigation
Hot Examples
KO
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
검색
홈
League
Period
Period
add
League\Period\Period::add PHP 메소드
Period 1 문서
파일 보기
프로젝트 열기: thephpleague/period
add()
공개
메소드
DEPRECATION WARNING! This method will be removed in the next major point release
사용 중단:
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
리턴
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