PHP Classes

File: sample.php

Recommend this page to a friend!
  Classes of Ovunc Tukenmez  >  Date difference  >  sample.php  >  Download  
File: sample.php
Role: Configuration script
Content type: text/plain
Description: Sample Usage
Class: Date difference
Calculate the difference between dates
Author: By
Last change: Added Comments.
Date: 14 years ago
Size: 327 bytes
 

Contents

Class file image Download
<?php
include('date_difference_class.php');
// -- first parameter must be greater date --
$result = new date_difference("01.01.2007 11:02:02", "20.12.2006 10:00:00");
echo
$result->days . ' days ' . $result->hours . ' hours ' . $result->minutes . ' minutes ' . $result->seconds . ' seconds';
?>

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