PHP Conference Kansai 2025

MongoDB\BSON\TimestampInterface::getTimestamp

(mongodb >=1.3.0)

MongoDB\BSON\TimestampInterface::getTimestampDevuelve el componente de timestamp de TimestampInterface

Descripción

abstract public MongoDB\BSON\TimestampInterface::getTimestamp(): int

Parámetros

Esta función no tiene parámetros.

Valores devueltos

Devuelve el componente de timestamp de TimestampInterface.

Advertencia

En sistemas de 32 bits, este método puede devolver un número negativo. Aunque las partes de incremento y timestamp del tipo timestamp BSON consisten en dos valores de 32 bits sin signo, PHP no puede representarlos en plataformas de 32 bits.

Ver también

add a note

User Contributed Notes

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