Documentation

Horde_Date_Span
in package

A Span represents a range of time.

Tags
author

Chuck Hagenbuch chuck@horde.org

category

Horde

copyright

2009-2017 Horde LLC

license

http://www.horde.org/licenses/lgpl21 LGPL

Table of Contents

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

Properties

Methods

__construct()

Constructor.

public __construct(mixed $begin, mixed $end) : mixed
Parameters
$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.

Return values
mixed

__toString()

public __toString() : mixed
Return values
mixed

add()

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

public add(mixed $factor) : mixed
Parameters
$factor : mixed
Return values
mixed

includes()

Is a Horde_Date within this span?

public includes(Horde_Date $date) : mixed
Parameters
$date : Horde_Date
Return values
mixed

sub()

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

public sub(mixed $factor) : mixed
Parameters
$factor : mixed
Return values
mixed

width()

Returns the width of this span in seconds.

public width() : mixed
Return values
mixed

Search results