Is this what you needed?
Don't remember where i found this - so i attached it to this email.
--

Michel Laine

************************************

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

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")
function 
nextDayOfWeek($dow,$day="",$month="",$year="",$format="%Y%m%d",$onOrAfter=false)
function 
prevDayOfWeek($dow,$day="",$month="",$year="",$format="%Y%m%d",$onOrAfter=false)
function nextDayOfWeekOnOrAfter($dow,$day="",$month="",$year="",$format="%Y%m%d")
function 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)

*******************************

Dl Neil wrote:

> Somewhere on my travels around the many PHP/script sites, I'm sure that at one time 
>I noticed a date-display
> utility. I cannot find it again. Please would someone point the way...
>
> What I'm looking for:
> displays a form with a variety of date/time fields, user enters a date/time into 
>various fields -
> utility returns with equivalent values/formats, eg timestamp to calendar, local to 
>GMT, date to day of week,
> etc.
>
> Please advise,
> =dn

Date_Calc-1.2.4.tar.gz

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to