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

  Author Author  
Picture of Si Cranmer
Name: Si Cranmer <contact>
Classes: 1 package by
Country: United Kingdom United Kingdom
Age: 45
All time rank: 156367 in United Kingdom United Kingdom
Week rank: 777 Up35 in United Kingdom United Kingdom Up
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
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.

  Classes of Si Cranmer  >  Work Days  >  Download Download .zip .tar.gz  >  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
Version: 1.0.0
PHP version: -
Licenses: Free For Educational Use
Free for non-commercial use
All time users: 1646 users
All time rank: 2197
Week users: 2 users
Week rank: 874 Up
Country specific: This package is specific mainly for applications used in United Kingdom United Kingdom .
 
  Groups   Rate classes User ratings   Applications   Files Files  

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


  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

  User ratings  
Not enough user ratings

  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
Plain text file clsWorkDays.php Class main class
Accessible without login Plain text file holidays_test.php Example Example of Script useage

Install with Composer Install with Composer - Download 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.