PHP Class Horde_Date_Span, horde

Author: Chuck Hagenbuch ([email protected])
Exibir arquivo Open project: horde/horde Class Usage Examples

Public Properties

Property Type Description
$begin Horde_Date
$end Horde_Date

Public Methods

Method Description
__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.

Method Details

__construct() public method

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 method

public __toString ( )

add() public method

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

includes() public method

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

sub() public method

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

width() public method

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

Property Details

$begin public_oe property

public Horde_Date $begin
return Horde_Date

$end public_oe property

public Horde_Date $end
return Horde_Date