<?
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
?>
|