Login   Register  
PHP Classes
elePHPant
Icontem

Date Class: Perform calculations with dates and times

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 (5)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2004-05-25 (10 years ago) RSS 2.0 feedStarStarStarStar 63%Total: 6,209 This week: 2All time: 327 This week: 829Down
Version License Categories  
dateclass 1.0GNU Lesser General Publ...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: 51
All time rank: 41949 in United States United States
Week rank: 744 Down78 in United States United States Down

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

 Version Control Unique User Downloads Download Rankings  
 0%Total:6,209All time:327
 This week:2This week:829Down
User Ratings User Comments (2)  
 All time
Utility:93%StarStarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:80%StarStarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:63%StarStarStarStar
Rank:614
 
It seems BOM() has a bug.
2 years ago (Angelo Mondati)
67%StarStarStarStar
I just needed something to subtract a certain number of days ...
6 years ago (Dustin Davis)
70%StarStarStarStar