MongoTimestamp::__toString
(PECL mongo >= 1.0.1)
MongoTimestamp::__toString — 返回时间戳的字符串表示形式
This extension that defines this method is deprecated. Instead, the MongoDB extension should be used. Alternatives to this method include:
MongoDB\BSON\Timestamp::__toString()
说明
public MongoTimestamp::__toString ( void ) : string返回时间戳里的秒数字段。
参数
此函数没有参数。
返回值
该时间戳自新纪元时间以来的秒数。
User Contributed Notes
There are no user contributed notes for this page.官方地址:https://www.php.net/manual/en/mongotimestamp.tostring.php