PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Emilio Rodríguez  >  CDate  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: CDate
Class to perform manipulation of dates
Author: By
Last change:
Date: 19 years ago
Size: 422 bytes
 

Contents

Class file image Download
<?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();

?>

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