PHP Classes

File: sample.php

Recommend this page to a friend!
  Classes of Reza Salehi   Future Date   sample.php   Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: the sample code
Class: Future Date
Calculates future dates given a time offset
Author: By
Last change:
Date: 19 years ago
Size: 584 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Future time sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<?php
   
include("futureTime.class.php");
   
//
   
$f=new futureDate();
   
//findDate($deltaDD=0, $deltaMM=0, $deltaYYYY=0)
   
$fDate=$f->findDate(0, 1, 0);
   
// This program will return an array which contains the date of tomorrow.
   
print("Tomorrows date is :".$fDate["year"]."-".$fDate["month"]."-".$fDate["day"]);
?>
</body>
</html>