update : 2015.11.03
php.shukuma.com

검색:
 
 
The MongoTimestamp class

The MongoTimestamp class

(PECL mongo >=1.0.1)

소개

MongoTimestamp is an internal type used by MongoDB for replication and sharding. It consists of a 4-byte timestamp (i.e. seconds since the epoch) and a 4-byte increment. This type is not intended for storing time or date values (e.g. a "createdAt" field on a document).

Note: Unless you are writing an application that interacts with MongoDB's replication oplog or sharding internals: stop, go directly to MongoDate, do not pass go, and do not collect 200 dollars. This is not the class you are looking for.

클래스 개요

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

Table of Contents