Login   Register  
PHP Classes

Class Calendar: Generate month calendar arrays

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Ken Stanley
Name: Ken Stanley <contact>
Classes: 2 packages by
Country: United States United States
Age: 37
All time rank: 1289169 in United States United States
Week rank: 1846 Down216 in United States United States Down

  Detailed description   Download Download .zip .tar.gz  
This class can generate multi-dimensional arrays containing the days of any given month across the span of weeks that the month days occupy.

It 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.

The class can also return the month name, month length in days, tell you if a given year is a leap year or not, and the week day name of a given 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.

  Classes of Ken Stanley  >  Class Calendar  >  Download Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Class Calendar
Base name: class_calendar
Description: Generate month calendar arrays
Version: -
PHP version: -
License: GNU Lesser General Public License (LGPL)
All time users: 803 users
All time rank: 3910
Week users: 0 users
Week rank: 1517 Equal
  Groups   Screenshots Screenshots   Rate classes User ratings   Applications   Files Files  

Group folder image Time and Date Time and date values, formats and conversion View top rated classes

  Files folder image Screenshots  
File Role Description
Accessible without login Image file class_calendar.png Screen Screenshot of example output

  User ratings  
Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Accessible without login Plain text file ChangeLog Doc. Notes of all changes and by when and whom they are made by.
Accessible without login Plain text file class_calendar.php Class Main Class
Accessible without login Plain text file class_sqlite.php Class Simple SQLite API
Accessible without login Plain text file index.php Example Advanced Usage Example
Accessible without login Plain text file README Doc. License, Examples, and Documentation

Download Download all files: class_calendar.tar.gz class_calendar.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.