Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2007-09-23 06:12
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';
?>