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

search for in the

MongoTimestamp::__construct> <MongoMaxKey
[edit] Last updated: Fri, 17 May 2013

view this page in

MongoTimestamp クラス

(PECL mongo >=1.0.1)

導入

MongoTimestamp は、シャーディングで使います。 シャーディングツールに書き込むつもりがないのなら、 MongoDate を使うとよいでしょう。

MongoTimestamp は、タイムスタンプ (エポックからの経過秒数) 4 バイトと増分 4 で構成されています。

このクラスは、時間を計測したりドキュメントにタイムスタンプを追加したり ドキュメント上のタイムスタンプを自動的に更新したりするためのものではありません。 シャーディングにかかわる書き込みをしているのでなければ、さっさと MongoDate のほうに行きましょう。 このクラスはあなたの求めているものではありません。

シャーディングツールに書き込んでいるという場合は、このまま読み続けてください。

クラス概要

MongoTimestamp {
/* Fields */
public int $sec = 0 ;
public int $inc = 0 ;
/* メソッド */
public __construct ([ int $sec = time() [, int $inc ]] )
public string __toString ( void )
}

目次



add a note add a note User Contributed Notes MongoTimestamp - [0 notes]
There are no user contributed notes for this page.

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