Php/docs/mongotimestamp.tostring

提供:Dev Guides
< Php
2020年12月14日 (月) 11:58時点におけるNotes (トーク | 投稿記録)による版 (autoload)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

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.