Login   Register  
PHP Classes
elePHPant
Icontem

Class: Work Days

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Si Cranmer  >  Work Days  >  Download .tar.gz .zip  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Work Days
Base name: clsworkdays
Description: Calculate business days between dates
Related classes: , , , , , , ,
Version: -
PHP version: -
Licenses: Free For Educational Use
Free for non-commercial use
All time users: 1508 users
All time rank: 2151
Week users: 1 user
Week rank: 2467
Country specific: This package is specific mainly for applications used in United Kingdom United Kingdom .
Picture of Si Cranmer
Author: Si Cranmer <e-mail contact>
Packages: 1 Browse this author's classes Browse this author's classes
Country: United Kingdom United Kingdom - PHP jobs in United Kingdom
Age: 42
All time rank: 145264 in United Kingdom United Kingdom
Week rank: 1634 Down70 in United Kingdom United Kingdom Down
Innovation award
Innovation award
Nominee: 1x


  Detailed description  
This class can be used to calculate the number of business days between two dates.

It can calculates the number of days excluding business holydays and weekend days that occur between the two given dates.

The class can also check if a given date and is a valid business day.

Currently it considers only United Kingdom holidays but the class can easily be expanded to support other countries.

 

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

  Rate classes User ratings   Applications   Files Files  

  Innovation Award  
PHP Programming Innovation award nominee
October 2006
Number 5
Calculating the number of days between two dates is a need that applications often have.

For businesses, it is also important to know how many work days separate two dates, as businesses only operate in those days.

This class is able to perform calculations that can consider only business days, thus excluding weekends and holidays.


Manuel Lemos

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
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
Plain text file clsWorkDays.php Class main class
Plain text file holidays_test.php Example Example of Script useage

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