update : 2015.11.03
php.shukuma.com

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

MongoId::getTimestamp

(PECL mongo >= 1.0.1)

MongoId::getTimestampGets 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.