MongoDB\Driver\ServerDescription::getLastUpdateTime
PHP Manual
PHP Manual»MongoDB\Driver\ServerDescription»MongoDB\Driver\ServerDescription::getLastUpdateTime

MongoDB\Driver\ServerDescription::getLastUpdateTime

(mongodb >=1.13.0)

MongoDB\Driver\ServerDescription::getLastUpdateTimeReturns the server's last update time in microseconds

Опис

final public function MongoDB\Driver\ServerDescription::getLastUpdateTime(): int

Returns the server's last update time in microseconds.

Зауваження: The returned value is a monotonic timestamp, which starts at an arbitrary point. As such, it is only suitable to compare with other return values from MongoDB\Driver\ServerDescription::getLastUpdateTime().

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

Returns the server's last update time in microseconds.

Помилки/виключення

To Top