PHP Classes
elePHPant
Icontem

File: testIncdatediff.php

Recommend this page to a friend!
  Classes of zinsou A.A.E.Mo´se  >  Incredible PHP Date and Time Difference  >  testIncdatediff.php  >  Download  
File: testIncdatediff.php
Role: Example script
Content type: text/plain
Description: example script
Class: Incredible PHP Date and Time Difference
Compute the time interval between two dates
Author: By
Last change:
Date: 2 months ago
Size: 485 bytes
 

Contents

Class file image Download
<?php
require_once('./IncDatetimediff.class.php');
$c=new IncredibleDatetimeDiff("2015-01-01-00-00-00","2017-12-31-23-59-59");
echo
'<br>'.$j=$c->IncDatediff ("mcydhis",true);
echo
'<br>'.$j=$c->IncDatediff ("mcydhis");
echo
'<br>'.$j=$c->IncDatediff ("ydhis");
$c=new IncredibleDatetimeDiff("2000-01-01-00-00-00","2017-12-31-23-59-59");
echo
'<br>'.$j=$c->IncDatediff ("mcydhis",true);
echo
'<br>'.$j=$c->IncDatediff ("mcydhis");
echo
'<br>'.$j=$c->IncDatediff ("ydhis");
?>