Source for file 19.php
Documentation is available at 19.php
* Description: demonstrates using the Weekday decorator
if (!@include 'Calendar'.DIRECTORY_SEPARATOR. 'Calendar.php') {
define ('CALENDAR_ROOT', '../../');
require_once CALENDAR_ROOT. 'Day.php';
require_once CALENDAR_ROOT. 'Decorator/Weekday.php';
// $WeekDay->setFirstDay(0); // Make Sunday first Day
echo 'Yesterday: '. $WeekDay->prevWeekDay (). '<br>';
echo 'Today: '. $WeekDay->thisWeekDay (). '<br>';
echo 'Tomorrow: '. $WeekDay->nextWeekDay (). '<br>';
while ( $Hour = $WeekDay->fetch () ) {
echo $Hour->thisHour (). '<br>';
Documentation generated on Mon, 11 Mar 2019 15:37:47 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|