MongoId::getTimestamp

(PECL mongo >= 1.0.1)

MongoId::getTimestampGets the number of seconds since the epoch that this id was created

Descrierea

public MongoId::getTimestamp ( ) : int

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

Parametri

Această funcție nu are parametri.

Valorile întoarse

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.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top