Login   Register  
PHP Classes
elePHPant
Icontem

File: Example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Abdellah Ben Rahmoun  >  Simple Time  >  Example.php  >  Download  
File: Example.php
Role: Example script
Content type: text/plain
Description: The Example File
Class: Simple Time
Calculate the difference and addition of times
Author: By
Last change: Change a mistake
Date: 2010-10-19 14:48
Size: 422 bytes
 

Contents

Class file image Download
<?
include('SimpleTime.php');
$Myvar = new SimpleTime();
$Myvar -> Config(4);
Echo 
Date("d - h"); // 19 - 07
Echo "<br>";
Echo 
$Myvar -> DateAdd("d",23,"15-Jun-2010","d:m:y"); // 08:07:10
Echo "<br>";
Echo 
$Myvar -> ZoneNameByOffset(12); // Pacific/Auckland
Echo "<br>";
Echo 
$Myvar -> Localtimezone(); // Europe/London
Echo "<br>";
Echo 
$Myvar -> DateDiff("09-Jan-2011","03-Jan-2009")." Days"// 736 Days
?>