Login   Register  
PHP Classes
elePHPant
Icontem

Work Days: Calculate business days between dates

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2006-10-16 (8 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,651 All time: 2,196 This week: 1,582Up
Version Licenses Categories  
clsworkdays 1.0.0Free For Educational Use, F...Time and Date
Description Author  
This package is specific mainly for applications used in United Kingdom United Kingdom .

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.

Innovation Award  
PHP Programming Innovation award nominee
October 2006
Number 5


Prize: One copy of DWeb Pro Lifetime License
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
Picture of Si Cranmer
Name: Si Cranmer <contact>
Classes: 1 package by
Country: United Kingdom United Kingdom
Age: 45
All time rank: 156667 in United Kingdom United Kingdom
Week rank: 1868 Down82 in United Kingdom United Kingdom Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file clsWorkDays.php Class main class
Accessible without login Plain text file holidays_test.php Example Example of Script useage

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,651All time:2,196
 This week:0This week:1,582Up
 User Comments (1)