PHP Classes
elePHPant
Icontem

Date from Incredible Timestamp: Compute date and time from timestamp from year 0

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-07-30 (4 months ago) RSS 2.0 feedNot enough user ratingsTotal: 76 All time: 8,944 This week: 551Up
Version License PHP version Categories
m14 1.0Custom (specified...5PHP 5, Time and Date
Description Author

This class can compute date and time from timestamp from year 0.

It can take as parameter a timestamp with the number of seconds since the year 0.

The class can convert the timestamp to the date and time with years up to 99999.

  Performance   Level  
Name: zinsou A.A.E.Mo´se is available for providing paid consulting. Contact zinsou A.A.E.Mo´se .
Classes: 25 packages by
Country: Benin Benin
Age: 28
All time rank: 15881 in Benin Benin
Week rank: 2 Up1 in Benin Benin Equal
Innovation award
Innovation award
Nominee: 6x

Details
datefromIncTimestamp class is simple class which use an algorithm based on Incredible timestamp
package to compute the exact date and time for an Incredible timestamp from year 0 to the year 99999 
the 31st December at 23:59:59. 

The class constructor:
public function __construct($x){
	"The  parameter must be a numeric."
	if $x<0 the tag 'BFJC' will be add to the result.
	if $x>0 the tag 'AFJC' will be add to the result.
	if $x==0 the tag 'First Day will be add to the result.
}



The class contains except the constructor, 3 methods:
-DatefromInc($christtag=true)

which computes and return the exact date and time for an Incredible timestamp:
$christtag is used to specify if you want the tag or no.

-GetjustDate($christtag=false)

which computes and return the exact date  an Incredible Timestamp;
$christtag is used to specify if you want the tag or no.

- GetjustTime()
which computes and return as its name shows  just the exact time an event happens for  a chosen Incredible Timestamp;

									
See the testDatefromInc.php file for example of how to use.
This script is too short to provide more 
documentation.
Contact at leizmo@gmail.com

 
  Files folder image Files  
File Role Description
Plain text file DatefromInc.class.php Class class source
Accessible without login Plain text file license.txt Lic. license
Accessible without login Plain text file readme.txt Doc. readme
Accessible without login Plain text file testDatefromInc.php Example example script

Downloadm14-2017-07-30.zip 4KB
Downloadm14-2017-07-30.tar.gz 3KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Incredible Timestamp Download .zip .tar.gz required to understand this class.This class have not sense without it Required
 Version Control Unique User Downloads Download Rankings  
 0%
Total:76
This week:0
All time:8,944
This week:551Up