Ratings | | Unique User Downloads | | Download Rankings |
Not yet rated by the users | | Total: 145 | | All time: 9,022 This week: 184 |
|
Description | | Author |
This class can spell a given time difference using English words.
It takes a given date and time as a timestamp number value or another format and computes the difference of time between now and the given time.
The class returns a string spelling how much time it passed in English. | |
|
Details
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);
?>
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.