Наш чат в Telegram для обмена идеями, проектами, мыслями, людьми в сфере ИТ г.Ростова-на-Дону: @it_rostov

The MongoTimestamp class

(Информация о версии неизвестна, возможно, только в 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 )
}

Содержание


Описание класса mongotimestamp, примеры использования класса mongotimestamp.



Смотрите также:
Описание на ru2.php.net
Описание на php.ru