PHP 클래스 Horde_Date_Span, horde

저자: Chuck Hagenbuch ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$begin Horde_Date
$end Horde_Date

공개 메소드들

메소드 설명
__construct ( mixed $begin, mixed $end ) Constructor.
__toString ( )
add ( $factor ) Add a number of seconds to this span, returning the new span
includes ( Horde_Date $date ) Is a Horde_Date within this span?
sub ( $factor ) Subtract a number of seconds from this span, returning the new span.
width ( ) Returns the width of this span in seconds.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( mixed $begin, mixed $end )
$begin mixed Horde_Date or other format accepted by the Horde_Date constructor.
$end mixed Horde_Date or other format accepted by the Horde_Date constructor.

__toString() 공개 메소드

public __toString ( )

add() 공개 메소드

Add a number of seconds to this span, returning the new span
public add ( $factor )

includes() 공개 메소드

Is a Horde_Date within this span?
public includes ( Horde_Date $date )
$date Horde_Date

sub() 공개 메소드

Subtract a number of seconds from this span, returning the new span.
public sub ( $factor )

width() 공개 메소드

Returns the width of this span in seconds.
public width ( )

프로퍼티 상세

$begin 공개적으로 프로퍼티

public Horde_Date $begin
리턴 Horde_Date

$end 공개적으로 프로퍼티

public Horde_Date $end
리턴 Horde_Date