- use this class when you want getting a futurist date from today date to date added by you.
- you can add one day or month or year or more or all of them , as you like .
- it can help you to get unix format date , when using ads system deleting automatically after same date you can use unix format .
- it results a difference day,month and year from today date to a futurist date .
GetFuturistDate.class.php
<?php
/*
//------------------------------------------------------------------------------------------------------------
|| @ Script Desc : Get a futurist date from today date to your adding date
|| @ Version : 1.0 beta
|| @ Created : NAIF PHP
|| @ Web Site : www.naifphp.net
|| @ Date Created : 22 - 8 - 2006
//--------------------------------------------------------------------------------------------------------------
*/
Class GetFuturistDate
{
var $date_format = "d / m / Y"; // date formatting day / month / year
var $_day = "0"; // set day
var $_month = "0"; // set month
var $_year = "0"; // set year
/* Output balance Years */
"BYEAR" => $balance['year'],
/* Output ToDay Date */
"TODAY" => $ToDay
);
}
return $FuturistDate;
}
}
?>
Example Usage
<?php
/*
//------------------------------------------------------------------------------------------------------------
|| @ Script Desc : Get a futurist date from today date to your adding date
|| @ Version : 1.0 beta
|| @ Created : NAIF PHP
|| @ Web Site : www.naifphp.net
|| @ Date Created : 22 - 8 - 2006
//--------------------------------------------------------------------------------------------------------------
*/
include_once ("GetFuturistDate.class.php");
if(! isset ( $_GET['action'] ) )
{
echo "<title> Example : Get Futurist Date Class </title>".
"<h2> Please insert the day , month and year to get a futurist date </h2>".
"Note : Leave any column blank if you don't want to add it .".