Class Calendar 1.0

Class Calendar takes a given month and year as parameters and it fills the multi-dimensional array, that represents the weeks and the week days, with the respective number of the days of the month. The array positions that represent days before and after the current month are filled with 0.

Class Calendar can also return the month name and its length in days, whether a year is a leap or not and the week day name for a specified day of the month.

Also, worth noting, the function valid_date will make sure that any month, day, and year are within valid parameters. For example, using the date 13/32/2005 by default is invalid. If you pass this date to valid_date, it would convert that date to 2/1/2006. This is important if accepting user input from a calendar.

License type: LGPL - GNU Lesser General Public License
Date added: 6 years, 1 month 2 days ago | Last updated: 6 years, 1 month 2 days ago

More popular Calendar

This is actually one of the most advanced image hosting script. The imagetize key features: SEO, Ads Ready, Admin

Listing Files

class-calendar-1-0
  • README
  • 12.4 KB
  • 10/22/2008 00:01:14
  • class_calendar.png
  • 5.9 KB
  • 10/22/2008 00:01:14
  • ChangeLog
  • 743 Bytes
  • 10/22/2008 00:01:14
Hot Scripts
Sponsors