php8.5
Home/ Manual/ bson / objectidinterface/ MongoDB\BSON\ObjectIdInterface::getTimestamp

MongoDB\BSON\ObjectIdInterface::getTimestamp

PHP function Edit on GitHub ✎

(mongodb >=1.3.0)

Returns the timestamp component of this ObjectIdInterface

Description

MongoDB\BSON\ObjectIdInterface::getTimestamp(): int

Parameters Parameters

Return Values

Returns the timestamp component of this ObjectIdInterface.

See Also

  • MongoDB\BSON\ObjectId::getTimestamp

Source: reference/mongodb/bson/objectidinterface/gettimestamp.xml · from the official PHP manual (php/doc-en)