Toggle navigation
Hot Examples
IT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Cerca
Home
Piwik
Date
subWeek
Piwik\Date::subWeek PHP Method
Date Class Documentation
Mostra file
Open project: piwik/piwik
subWeek()
public
method
Subtracts
$n
weeks from
$this
date and returns a new Date object.
public
subWeek
(
integer
$n
) :
Date
$n
integer
An integer > 0.
return
Date
public function subWeek($n) { return $this->subDay(7 * $n); }
Date
__construct
__toString
addDay
addHour
addHourTo
addPeriod
adjustForTimezone
compareMonth
compareWeek
compareYear
extractUtcOffset
factory
formatToken
getDateEndUTC
getDateStartUTC
getDatetime
getDatetimeFromTimestamp
getHourUTC
getInvalidDateFormatException
getLocalized
getMaxDaysInMonth
getTimestamp
getTimestampUTC
getUtcOffset
isEarlier
isLater
isLeapYear
isToday
now
parseFormat
secondsToDays
setDay
setTime
setTimezone
setYear
subDay
subHour
subMonth
subPeriod
subSeconds
subWeek
subYear
toString
today
yesterday
yesterdaySameTime