build($selectedDays); // Construct strings for next/previous links $PMonth = $month->prevMonth('object'); // Get previous month as object $prev = $_SERVER['PHP_SELF'].'?y='.$PMonth->thisYear().'&m='.$PMonth->thisMonth().'&d='.$PMonth->thisDay(); $NMonth = $month->nextMonth('object'); $next = $_SERVER['PHP_SELF'].'?y='.$NMonth->thisYear().'&m='.$NMonth->thisMonth().'&d='.$NMonth->thisDay(); $thisDate = new Date($month->thisMonth('timestamp')); ?> Calendar using PEAR::Date Engine

Calendar using PEAR::Date Engine

fetch()) { // Build a link string for each day $link = $_SERVER['PHP_SELF']. '?y='.$day->thisYear(). '&m='.$day->thisMonth(). '&d='.$day->thisDay(); // isFirst() to find start of week if ($day->isFirst()) echo "\n"; if ($day->isSelected()) { echo ''."\n"; } else if ($day->isEmpty()) { echo ''."\n"; } else { echo ''."\n"; } // isLast() to find end of week if ($day->isLast()) { echo "\n"; } } ?>
format('%B %Y'); ?>
M T W T F S S
'.$day->thisDay().' '.$day->thisDay().'
<<   >>
Took: '.(getmicrotime()-$start).' seconds

'; ?>