PHP 클래스 Zfplanet_View_Helper_TimeSince, ZFPlanet

상속: extends Zend_View_Helper_Abstract
파일 보기 프로젝트 열기: padraic/ZFPlanet

보호된 프로퍼티들

프로퍼티 타입 설명
$_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