PHP - Manual: MongoTimestamp::__toString
2024-12-22
(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:
返回时间戳里的秒数字段。
此函数没有参数。
该时间戳自新纪元时间以来的秒数。
官方地址:https://www.php.net/manual/en/mongotimestamp.tostring.php