Overview

Packages

  • Date

Classes

  • Horde_Date
  • Horde_Date_Exception
  • Horde_Date_Recurrence
  • Horde_Date_Repeater
  • Horde_Date_Repeater_Day
  • Horde_Date_Repeater_DayName
  • Horde_Date_Repeater_DayPortion
  • Horde_Date_Repeater_Fortnight
  • Horde_Date_Repeater_Hour
  • Horde_Date_Repeater_Minute
  • Horde_Date_Repeater_Month
  • Horde_Date_Repeater_MonthName
  • Horde_Date_Repeater_Season
  • Horde_Date_Repeater_SeasonName
  • Horde_Date_Repeater_Second
  • Horde_Date_Repeater_Time
  • Horde_Date_Repeater_Week
  • Horde_Date_Repeater_Weekend
  • Horde_Date_Repeater_Year
  • Horde_Date_Span
  • Horde_Date_Translation
  • Horde_Date_Utils

Exceptions

  • Horde_Date_Repeater_Exception
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Date_Span

A Span represents a range of time.

Package: Date
Category: Horde
Author: Chuck Hagenbuch chuck@horde.org
Located at Horde/Date/Span.php
Methods summary
public
# __construct( mixed $begin, mixed $end )

Constructor.

Constructor.

Parameters

$begin
<p>Horde_Date or other format accepted by the Horde_Date constructor.</p>
$end
<p>Horde_Date or other format accepted by the Horde_Date constructor.</p>
public
# width( )

Returns the width of this span in seconds.

Returns the width of this span in seconds.

public
# includes( Horde_Date $date )

Is a Horde_Date within this span?

Is a Horde_Date within this span?

Parameters

$date
public
# add( mixed $factor )

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

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

public
# sub( mixed $factor )

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

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

public
# __toString( )
Properties summary
public Horde_Date $begin
#
public Horde_Date $end
#
API documentation generated by ApiGen