<?php
// script example.php
// uses class CDate
// for date of tomorrow calculation
include("cdate.php");
$tomorrow = new CDate();
$tomorrow -> AddTime(0,0,1);
echo "Date of tomorrow is: ".$tomorrow->ReadDate();
echo "<br /><br />";
$OneMonthAfterJuly4 = new CDate(2003,7,4);
$OneMonthAfterJuly4 -> AddTime(0,1,0);
echo "Date of one month after July 4, 2003 is: ".$OneMonthAfterJuly4 -> ReadDate();
?>
|