SequoiaDB
 All Classes Files Functions Variables Pages
Public Member Functions | List of all members
SequoiaTimestamp Class Reference

Public Member Functions

 __construct ($timestamp)
 
 __toString ()
 

Detailed Description

Class for create an object of the timestamp type

Constructor & Destructor Documentation

SequoiaTimestamp::__construct (   $timestamp)

Constructor.

Parameters
string$timestampis timestamp string
$timeObj = new SequoiaTimestamp( '2000-01-01-12.30.20.123456' ) ;
$arr = array( 'time' => $timeObj ) ; // json ==> { "time": { "$timestamp": "2000-01-01-12.30.20.123456" } }

Member Function Documentation

SequoiaTimestamp::__toString ( )

PHP Magic Methods, the class as string output.

Returns
timestamp string
$timeObj = new SequoiaTimestamp( '2000-01-01-12.30.20.123456' ) ;
echo $timeObj ; // output ==> 2000-01-01-12.30.20.123456

The documentation for this class was generated from the following file: