Login   Register  
PHP Classes
elePHPant
Icontem

Clase DateTimeManager: Add or subtract a period to a date

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 (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-09-22 (7 years ago) RSS 2.0 feedNot enough user ratingsTotal: 407 All time: 5,867 This week: 1,445Up
Version License PHP version Categories  
clasedatetimemanager 1.0Freeware4.0Time and Date
Description Author  

This is a simple class that can be used to add or subtract a period to a date.

It takes as parameter a date with time in the ISO format as it is used also by MySQL. It can take an empty date string to specify the current date and time.

The class can add or subtract from the specified date and time a value in years, months, day, hours, minutes or seconds.

The resulting date is returned in the ISO format.

The code and comments are in Spanish.

In Spanish:
Esta clase permite moverse en el calendario hacia adelante y atras, se le pasa una fecha, la cantidad de unidades a moverse y la unidad (dia, mes, aņo, hora, minuto o segundo) y nos retorna la fecha resultado en formato MySQL.

Picture of Damian Sabia
Name: Damian Sabia <contact>
Classes: 1 package by
Country: Argentina Argentina
Age: 33
All time rank: 314742 in Argentina Argentina
Week rank: 1770 Up21 in Argentina Argentina Up

  Files folder image Files  
File Role Description
Plain text file claseDateTimeManager.inc.php Class Clase PHP

 Version Control Unique User Downloads Download Rankings  
 0%Total:407All time:5,867
 This week:0This week:1,445Up