MongoTimestamp::__toString

Returns a string representation of this timestamp

Note:

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

  • MongoDB\BSON\Timestamp::__toString

Description

public string MongoTimestamp::__toString ( void )

Returns the "sec" field of this timestamp.

Parameters

This function has no parameters.

Return Values

The seconds since epoch represented by this timestamp.