\Horde_Date_Span

A Span represents a range of time.

Summary

Methods
Properties
Constants
__construct()
width()
includes()
add()
sub()
__toString()
$begin
$end
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

Methods

__construct()

__construct(mixed  $begin, mixed  $end) 

Constructor.

Parameters

mixed $begin

Horde_Date or other format accepted by the Horde_Date constructor.

mixed $end

Horde_Date or other format accepted by the Horde_Date constructor.

width()

width() 

Returns the width of this span in seconds.

includes()

includes(\Horde_Date  $date) 

Is a Horde_Date within this span?

Parameters

\Horde_Date $date

add()

add(  $factor) 

Add a number of seconds to this span, returning the new span

Parameters

$factor

sub()

sub(  $factor) 

Subtract a number of seconds from this span, returning the new span.

Parameters

$factor

__toString()

__toString()