array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'mongodb-driver-serverdescription.getlastupdatetime.php', 1 => 'MongoDB\\Driver\\ServerDescription::getLastUpdateTime', 2 => 'Returns the server\'s last update time in microseconds', ), 'up' => array ( 0 => 'class.mongodb-driver-serverdescription.php', 1 => 'MongoDB\\Driver\\ServerDescription', ), 'prev' => array ( 0 => 'mongodb-driver-serverdescription.gethost.php', 1 => 'MongoDB\\Driver\\ServerDescription::getHost', ), 'next' => array ( 0 => 'mongodb-driver-serverdescription.getport.php', 1 => 'MongoDB\\Driver\\ServerDescription::getPort', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/mongodb/driver/serverdescription/getlastupdatetime.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

MongoDB\Driver\ServerDescription::getLastUpdateTime

(mongodb >=1.13.0)

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

Опис

final public 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.

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