The PHP Online Conference 2021


(PECL mongo >= 1.0.1)

MongoTimestamp::__toStringReturns a string representation of this timestamp


public MongoTimestamp::__toString ( void ) : string

Returns the "sec" field of this timestamp.


This function has no parameters.

Return Values

The seconds since epoch represented by this timestamp.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top