downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

MongoId::__set_state> <MongoId::getPID
[edit] Last updated: Fri, 25 May 2012

view this page in

MongoId::getTimestamp

(PECL mongo >= 1.0.1)

MongoId::getTimestampこの id が作られたときのエポックからの経過秒数を取得する

説明

public int MongoId::getTimestamp ( void )

これは、id が作られたときに time() を実行した結果と同じものを返します。

パラメータ

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

返り値

この id が作られたときのエポックからの経過秒数を返します。 タイムスタンプの格納領域は 4 バイトしかないので、実際の時刻や幅広い時間を格納するには MongoDate のほうが適しています。



add a note add a note User Contributed Notes MongoId::getTimestamp
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites