Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
Zfplanet_View_Helper_TimeSince
PHP Класс Zfplanet_View_Helper_TimeSince, ZFPlanet
Наследование:
extends
Zend_View_Helper_Abstract
Показать файл
Открыть проект
Защищенные свойства (Protected)
Свойство
Тип
Описание
$_now
Открытые методы
Метод
Описание
__construct
( )
timeSince
(
string
$date
) :
integer
Calculate number of days/hours/minutes since the provided date (must be ISO 8601 date).
Описание методов
__construct()
публичный
Метод
public
__construct
( )
timeSince()
публичный
Метод
Because this adds partial days, we just round the result up or down to get the closest number of "full" days/hours/minutes. Note that we only use ONE measure. If it's less than a day, we return hours. If less than an hour...
public
timeSince
(
string
$date
) :
integer
$date
string
ISO 8601 compatible date
Результат
integer
Описание свойств
$_now
защищенное свойство
protected
$_now