PHP Classes

Date Class: Perform calculations with dates and times

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 62%Total: 6,292 All time: 346 This week: 660Down
Version License Categories
dateclass 1.0GNU Lesser Genera...Time and Date, Math
Description 

Author

This package consists of two classes meant for performing calculations with dates and times.

There is one class for manipulating dates and another for manipulate data spans.

The classes allow to add or subtract periods from dates and calculate the difference between two dates for various periods. Periods include Years, Quarters, Months, Weeks, Weekdays, Hours, Minutes, Seconds.

The classes return expected metrics plus begin and end of week, begin and end of quarter, begin and end of year, begin and end of month.

Picture of Steve Powell
Name: Steve Powell <contact>
Classes: 1 package by
Country: United States United States
Age: 61
All time rank: 44756 in United States United States
Week rank: 128 Up15 in United States United States Up

  Files folder image Files (2)  
File Role Description
Plain text file dateclass.php Class Source for DateClass and DateSpanClass
Accessible without login HTML file readme.htm Doc. Class Overview

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:6,292
This week:0
All time:346
This week:660Down
User Ratings User Comments (2)
 All time
Utility:92%StarStarStarStarStar
Consistency:86%StarStarStarStarStar
Documentation:80%StarStarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:62%StarStarStarStar
Rank:892
 
It seems BOM() has a bug.
12 years ago (Angelo Mondati)
67%StarStarStarStar
I just needed something to subtract a certain number of days ...
15 years ago (Dustin Davis)
70%StarStarStarStar