downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

MongoId::__set_state> <MongoId::getPID
[edit] Last updated: Fri, 23 Mar 2012

view this page in

MongoId::getTimestamp

(PECL mongo >= 1.0.1)

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

Opis

public int MongoId::getTimestamp ( void )

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

Parametry

Ta funkcja nie posiada parametrów.

Zwracane wartości

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 MongoId::getTimestamp
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites