PHP Classes

Date and Time Calculator: Add or subtract dates and times in custom formats

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (5)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 70%Total: 3,192 This week: 1All time: 1,113 This week: 560Up
Version License PHP version Categories
date_time_calc 0.9.3GNU General Publi...5.0PHP 5, Time and Date
Description 

Author

This class can be used to add or subtract date and time values in customizable formats using format modifiers like the PHP date() function.

It can set the date and time to a given value and then it can add or subtract a given amount of time in either seconds, minutes, hours, days, weeks, months or years.

The class functions can either return the resulting date and time or store it in a class variable for performing further add or subtract operations.

Picture of Cale O
Name: Cale O <contact>
Classes: 3 packages by
Country: United States United States
Age: 50
All time rank: 790106 in United States United States
Week rank: 411 Up48 in United States United States Up

Screenshots  
  • exampleshot2.gif
  • exampleshot.gif
  Files folder image Files  
File Role Description
Files folder imagedocs (2 files)
Plain text file class.datetimecalc.php Class DateTimeCalc Class
Accessible without login Plain text file example.php Example Includes many date and time example calculations using this class.
Accessible without login Plain text file test.php Example HTML Form to test date/time calculations using this class.

  Files folder image Files  /  docs  
File Role Description
  Accessible without login HTML file example.html Doc. Class Usage/Examples
  Accessible without login HTML file date_time_formats.html Doc. List of currently accepted and coming soon date/time formats.

 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,192
This week:1
All time:1,113
This week:560Up
User Ratings User Comments (2)
 All time
Utility:92%StarStarStarStarStar
Consistency:80%StarStarStarStarStar
Documentation:80%StarStarStarStarStar
Examples:85%StarStarStarStarStar
Tests:-
Videos:-
Overall:70%StarStarStarStar
Rank:248
 
Perfect.
8 years ago (Ulisses Mantovani)
80%StarStarStarStarStar
Very useful class for my application, easy to use, very good ...
15 years ago (Juan Suarez)
90%StarStarStarStarStar