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 用于分片(sharding)。 如果你不是想写分布式工具,你需要的也许是 MongoDate

MongoTimestamp 是 4 字节的时间戳(自新纪元以来的秒数),和 4 字节的自增长值。

这个类不用于测量时间、为文档创建时间戳或为一个文档自动增加、更新时间戳。 除非你写的是关于分片式内部的交互,否则请停下,直接前往 MongoDate, 不要再继续研究这个东西。这不是你要找的类。

如果你在写一个分片工具,继续阅读。

类摘要

MongoTimestamp {
/* 字段 */
public int $sec = 0 ;
public int $inc = 0 ;
/* 方法 */
public __construct ([ int $sec = time() [, int $inc ]] )
public string __toString ( void )
}

Table of Contents



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