PHP Classes

File: sample_script

Recommend this page to a friend!
  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: 16 years ago
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]-->";


?>