PHP Classes
elePHPant
Icontem

File: testDatefromInc.php

Recommend this page to a friend!
  Classes of zinsou A.A.E.Mo´se  >  Date from Incredible Timestamp  >  testDatefromInc.php  >  Download  
File: testDatefromInc.php
Role: Example script
Content type: text/plain
Description: example script
Class: Date from Incredible Timestamp
Compute date and time from timestamp from year 0
Author: By
Last change:
Date: 5 months ago
Size: 1,347 bytes
 

Contents

Class file image Download
<?php
require_once('./DatefromInc.class.php');
$t=time();
echo
'<br>Unix timestamp :'.$t.'<br>';
$c=new IncredibleTimestamp(explode('-',date("Y-m-d-H-i-s",$t)));
echo
'<br> Incredible timestamp for actual date : '.$i=$c->IncTimestamp ();
echo
'<br> Incredible timestamp to unix for actual date : '.$c->IncTimestamptoUnix ().'<br>';

$f=new datefromIncTimestamp($i);
echo
'<br>Date and time from Incredible timestamp with christ tag for actual date :'. $f->DatefromInc().'<br>';
echo
'<br>Date and time from Incredible timestamp without christ tag actual date :'. $f->DatefromInc(false).'<br>';
echo
'<br> Date from Incredible timestamp without christ tag actual date :'. $f->GetjustDate(false).'<br>';
echo
'<br> Date from Incredible timestamp with christ tag actual date :'. $f->GetjustDate(true).'<br>';
echo
'<br>time from Incredible timestamp for actual date : '. $f->GetjustTime().'<br>';
$c=new IncredibleTimestamp(explode('-',"99999-8-31-23-22-30"));
echo
'<br>Incredible timestamp for 99999-8-31-23-22-30 : '.$j=($c->IncTimestamp ());
$f=new datefromIncTimestamp($j);
echo
'<br>Date and time from Incredible timestamp without christ tag for 99999-8-31-23-22-30 : '. $f->DatefromInc(false).'<br>';
echo
'<br> Date and time from Incredible timestamp with christ tag for 99999-8-31-23-22-30 : '. $f->DatefromInc().'<br>';

?>