NOTICE:
	This library is now part of the PHP PEAR repository and will
	no longer be maintained here. To get the latest version of
	Date_Calc, See the PEAR repository under Date/Calc.php.

NAME:

	Date_Calc - a class for manipulating and comparing
	Calendar dates, as well as formulating arrays of dates
	for traditional calendar display.

AUTHOR:
	Monte Ohrt <monte AT ohrt DOT com>

SYNOPSIS:

	require 'Date/Calc.php';
	
	$days = Date_Calc::date_diff('01','10','2000','01','01','2045');
	echo "the number of days between October 10, 2000 and
		January 1st 2045 is $days.";

EXAMPLES:

	http://www.phpinsider.com/php/code/Date_Calc/showCalendarMonth.php
	http://www.phpinsider.com/php/code/Date_Calc/showCalendarYear.php
	http://www.phpinsider.com/php/code/Date_Calc/showCalendarWeek.php
	http://www.phpinsider.com/php/code/Date_Calc/showCalendarDay.php
	http://www.phpinsider.com/php/code/Date_Calc/test.php

LATEST VERSION:
	1.2.6 - November 20, 2002

DOWNLOAD:
	http://www.phpinsider.com/php/code/Date_Calc/Date_Calc-1.2.6.tar.gz

CHANGELOG:
	http://www.phpinsider.com/php/code/Date_Calc/Changelog

CLASS SOURCECODE:
	Pretty
	Plain
	

DESCRIPTION:

	What is Date_Calc?

	Date_Calc is a calendar class used to calculate and
	manipulate calendar dates and retrieve dates in a calendar
	format. It does not rely on 32-bit system date stamps, so
	you can display calendars and compare dates that date
	pre 1970 and post 2038.

	Some of Date_Calc's features:
	
	* comparing number of days between arbitrary dates
	* validating dates
	* calculating leap years
	* calculating the day of the week
	* calculating week of the year
	* calculating first and last days of the month
	* calculating next/prev week day
	* calculating arrays of days for use in calendar displays
	

REQUIREMENTS:

	PHP 4.x.
	Date_Calc was developed and tested with PHP 4.0.2.

CLASS METHODS:
	
	dateNow($format="%Y%m%d")
	isValidDate($day,$month,$year)
	isLeapYear($year="")
	isFutureDate($day,$month,$year)
	isPastDate($day,$month,$year)
	dayOfWeek($day="",$month="",$year="")
	weekOfYear($day,$month,$year)
	julianDate($day="",$month="",$year="")
	quarterOfYear($day="",$month="",$year="")
	beginOfNextMonth($day="",$month="",$year="",$format="%Y%m%d")
	endOfNextMonth($day="",$month="",$year="",$format="%Y%m%d")
	beginOfPrevMonth($day="",$month="",$year="",$format="%Y%m%d")
	endOfPrevMonth($day="",$month="",$year="",$format="%Y%m%d")
	nextWeekday($day="",$month="",$year="",$format="%Y%m%d")
	prevWeekday($day="",$month="",$year="",$format="%Y%m%d")
	nextDayOfWeek($dow,$day="",$month="",$year="",$format="%Y%m%d",$onOrAfter=false)
	prevDayOfWeek($dow,$day="",$month="",$year="",$format="%Y%m%d",$onOrAfter=false)
	nextDayOfWeekOnOrAfter($dow,$day="",$month="",$year="",$format="%Y%m%d")
	prevDayOfWeekOnOrBefore($dow,$day="",$month="",$year="",$format="%Y%m%d")
	nextDay($day="",$month="",$year="",$format="%Y%m%d")
	prevDay($day="",$month="",$year="",$format="%Y%m%d")
	defaultCentury($year)
	dateDiff($day1,$month1,$year1,$day2,$month2,$year2)
	daysInMonth($month="",$year="")
	weeksInMonth($month="",$year="")
	firstOfMonthWeekday($month="",$year="")
	beginOfMonth($month="",$year="",$format="%Y%m%d")
	beginOfWeek($day="",$month="",$year="",$format="%Y%m%d")
	endOfWeek($day="",$month="",$year="",$format="%Y%m%d")
	beginOfNextWeek($day="",$month="",$year="",$format="%Y%m%d")
	beginOfPrevWeek($day="",$month="",$year="",$format="%Y%m%d")
	getCalendarWeek($day="",$month="",$year="",$format="%Y%m%d")
	getCalendarMonth($month="",$year="",$format="%Y%m%d")
	getCalendarYear($year="",$format="%Y%m%d")
	dateToDays($day,$month,$year)
	daysToDate($days,$format="%Y%m%d")
	NWeekdayOfMonth($occurance,$dayOfWeek,$month,$year,$format="%Y%m%d")
	dateFormat($day,$month,$year,$format)
	getYear()
	getMonth()
	getDay()
	getMonthFullname($month)
	getMonthAbbrname($month,$length=3)
	getWeekdayFullname($day="",$month="",$year="")
	getWeekdayAbbrname($day="",$month="",$year="",$length=3)
	
COPYRIGHT:
	Copyright(c) 1999,2002 ispi. All rights reserved.
	This software is released under the PHP License.
	Please read the disclaimer at the top of the Calc.php file.