Documentation

Kronolith_Day extends Horde_Date
in package

The Kronolith_Day:: class provides an API for dealing with days.

Tags
author

Chuck Hagenbuch chuck@horde.org

Table of Contents

$slotLength  : int
How many minutes are in each slot? Calculated from $_slotsPerHour.
$slots  : array<string|int, mixed>
Array of slots holding hours and minutes for each piece of this day.
$slotsPerDay  : int
How many slots do we have per day? Calculated from $_slotsPerHour.
$slotsPerHour  : int
How many time slots are we dividing each hour into? Set from user preferences.
__construct()  : mixed
Constructor.
diff()  : mixed
getTime()  : mixed
getTomorrow()  : mixed
getYesterday()  : mixed
isToday()  : mixed
isTomorrow()  : mixed

Properties

$slotLength

How many minutes are in each slot? Calculated from $_slotsPerHour.

public int $slotLength
Tags
see

$_slotsPerHour

$slots

Array of slots holding hours and minutes for each piece of this day.

public array<string|int, mixed> $slots = array()

$slotsPerDay

How many slots do we have per day? Calculated from $_slotsPerHour.

public int $slotsPerDay
Tags
see

$_slotsPerHour

$slotsPerHour

How many time slots are we dividing each hour into? Set from user preferences.

public int $slotsPerHour

Methods

__construct()

Constructor.

public __construct([int $month = null ][, int $day = null ][, int $year = null ]) : mixed
Parameters
$month : int = null
$day : int = null
$year : int = null
Return values
mixed

diff()

public diff([mixed $other = null ]) : mixed
Parameters
$other : mixed = null
Return values
mixed

getTime()

public getTime(mixed $format, mixed $offset) : mixed
Parameters
$format : mixed
$offset : mixed
Return values
mixed

getTomorrow()

public getTomorrow() : mixed
Return values
mixed

getYesterday()

public getYesterday() : mixed
Return values
mixed

isToday()

public isToday() : mixed
Return values
mixed

isTomorrow()

public isTomorrow() : mixed
Return values
mixed

Search results