PHP Classes

File: dtm_example.php

Recommend this page to a friend!
  Classes of Albert Lash  >  class.dateTimeManager.php  >  dtm_example.php  >  Download  
File: dtm_example.php
Role: Example script
Content type: text/plain
Description: A very simple example of class usage.
Class: class.dateTimeManager.php
A class to handle date time shifting.
Author: By
Last change:
Date: 19 years ago
Size: 609 bytes
 

Contents

Class file image Download
<?php

/**
 *
 * dtm_example.php
 *
 * This is a very simple example of how to use class.dateTimeManager.php.
 *
 * Name: dateTimeManager
 * Author: Albert L. Lash, IV
 * Email: alash@plateauinnovation.com
 * Version: 0.1
 * Date: 08/29/02 1:00PM EST
 * License: GPL
 *
 */



/** Includes */
include("class.dateTimeManager.php");

/** Create new dateTimeManager object */
$shift_time_back = new dateTimeManager;

/** Shift time back three days */
$new_time = $shift_time_back->shift_dates($right_now='', "3", "d");

/** Let us view the new time */
echo $new_time;






?>

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