PHP 클래스 Knp\Bundle\TimeBundle\Templating\Helper\TimeHelper

상속: extends Symfony\Component\Templating\Helper\Helper
파일 보기 프로젝트 열기: KnpLabs/KnpTimeBundle

보호된 프로퍼티들

프로퍼티 타입 설명
$formatter

공개 메소드들

메소드 설명
__construct ( DateTimeFormatter $formatter )
diff ( $from, $to = null ) : string Returns a single number of years, months, days, hours, minutes or seconds between the specified date times.
getDatetimeObject ( mixed $datetime = null ) : DateTimeInterfac\DateTimeInterface Returns a DateTime instance for the given datetime
getName ( )

메소드 상세

__construct() 공개 메소드

public __construct ( DateTimeFormatter $formatter )
$formatter Knp\Bundle\TimeBundle\DateTimeFormatter

diff() 공개 메소드

Returns a single number of years, months, days, hours, minutes or seconds between the specified date times.
public diff ( $from, $to = null ) : string
리턴 string

getDatetimeObject() 공개 메소드

Returns a DateTime instance for the given datetime
public getDatetimeObject ( mixed $datetime = null ) : DateTimeInterfac\DateTimeInterface
$datetime mixed
리턴 DateTimeInterfac\DateTimeInterface

getName() 공개 메소드

public getName ( )

프로퍼티 상세

$formatter 보호되어 있는 프로퍼티

protected $formatter