The MongoTimestamp class

(PECL mongo >=1.0.1)

Avertizare

Extensia care definește această clasă este învechită. În loc, trtebuie utilizată extensia MongoDB. Variante alternative pentru această clasă includ:

Introducere

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).

Notă: 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.

Sinopsisul clasei

MongoTimestamp {
/* Fields */
public int $sec = 0 ;
public int $inc = 0 ;
/* Metode */
public __construct ( int $sec = time() , int $inc = ? )
public __toString ( ) : string
}

Cuprins

add a note add a note

User Contributed Notes 1 note

up
0
Zenioxmedia
9 years ago
"sin pasar por la casilla de salida y sin cobrar 200 dólares"
LOL !!! muy bueno! xD
To Top