PHP Classes

File: PhpDateTimeAgo/example.php

Recommend this page to a friend!
  Classes of sassi souid  >  PHP Date and Time Ago  >  PhpDateTimeAgo/example.php  >  Download  
File: PhpDateTimeAgo/example.php
Role: Example script
Content type: text/plain
Description: how to use
Class: PHP Date and Time Ago
Spell a given time difference using English words
Author: By
Last change:
Date: 1 year ago
Size: 234 bytes



Class file image Download
require('DateTimeAgo.php'); //required class file
$req=new DateTimeAgo;
$time='1525697422';//Timestamp for example
$lang='english';//Language for example
echo $req->__convert($time,$lang);