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

search for in the

MongoTimestamp::__construct> <MongoMaxKey
[edit] Last updated: Sat, 07 Jan 2012

view this page in

The MongoTimestamp class

(No version information available, might only be in SVN)

소개

MongoTimestamp is used by sharding. If you're not looking to write sharding tools, what you probably want is MongoDate.

MongoTimestamp is 4 bytes of timestamp (seconds since the epoch) and 4 bytes of increment.

This class is not for measuring time, creating a timestamp on a document or automatically adding or updating a timestamp on a document. Unless you are writing something that interacts with the sharding internals, stop, go directly to MongoDate, do not pass go, do not collect 200 dollars. This is not the class you are looking for.

If you are writing sharding tools, read on.

클래스 개요

MongoTimestamp {
/* Fields */
public int $MongoTimestamp->sec = 0 ;
public int $inc = 0 ;
/* 메소드 */
MongoTimestamp::__construct ([ int $sec = time() [, int $inc ]] )
public string MongoTimestamp::__toString ( void )
}

Table of Contents



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

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