The MongoTimestamp class
(PECL mongo >=1.0.1)
This extension that defines this class is deprecated. Instead, the MongoDB extension should be used. Alternatives to this class include:
Введение
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).
Замечание: 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::__construct — Creates a new timestamp.
- MongoTimestamp::__toString — Returns a string representation of this timestamp
Коментарии
404 Not Found