MongoId::getTimestamp

Gets the number of seconds since the epoch that this id was created

Hinweis:

This extension that defines this method is deprecated. Instead, the MongoDB extension should be used. There is no equivalent for this method in the new extension.

Beschreibung

public int MongoId::getTimestamp ( void )

This returns the same thing as running time when the id is created.

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

Returns the number of seconds since the epoch that this id was created. There are only four bytes of timestamp stored, so MongoDate is a better choice for storing exact or wide-ranging times.