GoLang MongoTimestamp::__toString

request it (235)
GoLang replacement for PHP's MongoTimestamp::__toString [edit | history]

Do you know a GoLang replacement for PHP's MongoTimestamp::__toString? Write it!

PHP MongoTimestamp::__toString

PHP original manual for MongoTimestamp::__toString [ show | php.net ]


(PECL mongo >= 1.0.1)

MongoTimestamp::__toStringReturns a string representation of this timestamp


public string MongoTimestamp::__toString ( void )

Returns the "sec" field of this timestamp.


This function has no parameters.

Return Values

The seconds since epoch represented by this timestamp.