Php/docs/mongotimestamp.tostring

提供:Dev Guides
< Php
移動先:案内検索

MongoTimestamp::__toString

(PECL mongo >= 1.0.1)

MongoTimestamp::__toStringReturns a string representation of this timestamp


このメソッドを定義している拡張モジュールは非推奨です。

かわりに MongoDB 拡張モジュールを使うべきです。 このメソッドの代替として、以下が使えます。

説明

public MongoTimestamp::__toString ( ) : string

Returns the "sec" field of this timestamp.


パラメータ

この関数にはパラメータはありません。


返り値

The seconds since epoch represented by this timestamp.