PHP Classes

Work Days: Calculate business days between dates

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 53%Total: 1,689 All time: 2,332 This week: 660Up
Version Licenses Categories
clsworkdays 1.0.0Free For Educatio...Time and Date
Description 

Author

This package is specific mainly for applications used in 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
Age: 55
All time rank: 170376 in United Kingdom
Week rank: 264 Up9 in United Kingdom Up
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,689
This week:0
All time:2,332
This week:660Up
User Ratings User Comments (1)
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:2198
 
Thanks for uploading this function.
15 years ago (chip)
70%StarStarStarStar