Php/docs/mongotimestamp.tostring

From Get docs

MongoTimestamp::__toString

(PECL mongo >= 1.0.1)

MongoTimestamp::__toStringReturns a string representation of this timestamp


This extension that defines this method

is deprecated. Instead, the MongoDB extension should be used. Alternatives to this method include:

Description

public MongoTimestamp::__toString ( ) : string

Returns the "sec" field of this timestamp.


Parameters

This function has no parameters.


Return Values

The seconds since epoch represented by this timestamp.