PHP Classes


Recommend this page to a friend!
  Classes of Ravi Kumar   PHP Next Working Day   Download  
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: PHP Next Working Day
Compute the next working day from today
Author: By
Last change: Added holidays reasons
Date: 7 years ago
Size: 417 bytes


Class file image Download


This class can compute the next working day from today.

It extends the DateTime class and takes a given time of the day, which defaults to now, and computes the next working day.

The class considers a range of working hours, and whether it is Sunday or an holiday to exclude from the list working days.

It can also return the formatted day according to a given format template.

Added holidays reasons.