MongoId::getHostname
MongoId::__set_state
MongoId
PHP Manual

# MongoId::getTimestamp

(PECL mongo >= 1.0.1)

MongoId::getTimestamp — Gets the number of seconds since the epoch that this id was created

### 説明

public int MongoId::getTimestamp ( void )

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

### パラメータ

この関数にはパラメータはありません。

### 返り値

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.

MongoId::getHostname
MongoId::__set_state
MongoId
PHP Manual