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
subHour
Piwik\Date::subHour PHP Method
Date Class Documentation
Mostra file
Open project: piwik/piwik
subHour()
public
method
Subtracts
$n
hours from
$this
date and returns the result in a new Date.
public
subHour
(
integer
$n
) :
Date
$n
integer
Number of hours to subtract. Can be less than 0.
return
Date
public function subHour($n) { return $this->addHour(-$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