File: PhpDateTimeAgo/

Recommend this page to a friend!
  Classes of sassi souid  >  PHP Date and Time Ago  >  PhpDateTimeAgo/  >  Download  
File: PhpDateTimeAgo/
Role: Documentation
Content type: text/markdown
Description: documentation
Class: PHP Date and Time Ago
Spell a given time difference using English words
Author: By
Last change:
Date: 2 years ago
Size: 693 bytes


Class file image Download



- php class to convert timestamp in human readable form - calculate execution time of php script - you can add multiple languages - normal date and time


This php class can detect the time difference between now and one old second,minute,hour,day, month or years. It takes the date of one day and computes the number of seconds between that day and now. The class returns one string that spells the difference of time between the dates.


<?php require('DateTimeAgo.php'); //required class file

		$req=new DateTimeAgo;
		echo $req->__convert($time,$lang);

For more information send a message to info at phpclasses dot org.