\Kronolith_Day

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

Summary

Methods
Properties
Constants
__construct()
getTime()
getTomorrow()
getYesterday()
isToday()
isTomorrow()
diff()
$slotsPerHour
$slotsPerDay
$slotLength
$slots
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$slotsPerHour

$slotsPerHour : integer

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

Type

integer

$slotsPerDay

$slotsPerDay : integer

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

Type

integer

$slotLength

$slotLength : integer

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

Type

integer

$slots

$slots : array

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

Type

array

Methods

__construct()

__construct(integer  $month = null, integer  $day = null, integer  $year = null) 

Constructor.

Parameters

integer $month
integer $day
integer $year

getTime()

getTime(  $format,   $offset) 

Parameters

$format
$offset

getTomorrow()

getTomorrow() 

getYesterday()

getYesterday() 

isToday()

isToday() 

isTomorrow()

isTomorrow() 

diff()

diff(  $other = null) 

Parameters

$other