PHP Classes

File: PhpDateTimeAgo/readme.md

Recommend this page to a friend!
  Classes of sassi souid   PHP Date and Time Ago   PhpDateTimeAgo/readme.md   Download  
File: PhpDateTimeAgo/readme.md
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: 6 years ago
Size: 693 bytes
 

Contents

Class file image Download

PHP-time-ago-class

Feature

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

Description

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.

Example:

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

		$req=new DateTimeAgo;
         $time='1525697422';
         $lang='english';
		echo $req->__convert($time,$lang);
		?>