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: 14 years ago
Size: 262 bytes


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


For more information send a message to info at phpclasses dot org.