PHP Doku:: Gets the number of seconds since the epoch that this id was created - mongoid.gettimestamp.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDatenbankerweiterungenAnbieterspezifische DatenbankerweiterungenMongoDB Native DriverTypesThe MongoId classMongoId::getTimestamp

Ein Service von Reinhard Neidl - Webprogrammierung.

The MongoId class

<<MongoId::getPID

MongoId::__set_state>>

MongoId::getTimestamp

(PECL mongo >= 1.0.1)

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

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.


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)