Login   Register  
PHP Classes
elePHPant
Icontem

File: sample_script

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Frank  >  Calculate Date Difference  >  sample_script  >  Download  
File: sample_script
Role: Example script
Content type: text/plain
Description: sample script
Class: Calculate Date Difference
Compute the time difference between two dates
Author: By
Last change:
Date: 2008-03-12 02:07
Size: 262 bytes
 

Contents

Class file image Download
<?php
require_once 'class.Date_Diff.php';
$date = new Date_Diff'02/01/2007 23:02:01''01/31/2007 22:01:01' );
echo 
"[DAYS]--->".$date->getDiffInDays() ."\n[HOURS]--->".$date->getDiffInHours() ."\n[MINS]-->".$date->getDiffInMinutes()."\n[SEC]-->";


?>