array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'mongodb-driver-session.getclustertime.php', 1 => 'MongoDB\\Driver\\Session::getClusterTime', 2 => 'Returns the cluster time for this session', ), 'up' => array ( 0 => 'class.mongodb-driver-session.php', 1 => 'MongoDB\\Driver\\Session', ), 'prev' => array ( 0 => 'mongodb-driver-session.endsession.php', 1 => 'MongoDB\\Driver\\Session::endSession', ), 'next' => array ( 0 => 'mongodb-driver-session.getlogicalsessionid.php', 1 => 'MongoDB\\Driver\\Session::getLogicalSessionId', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/mongodb/driver/session/getclustertime.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

MongoDB\Driver\Session::getClusterTime

(mongodb >=1.4.0)

MongoDB\Driver\Session::getClusterTimeReturns the cluster time for this session

Опис

final public MongoDB\Driver\Session::getClusterTime(): ?object

Returns the cluster time for this session. If the session has not been used for any operation and MongoDB\Driver\Session::advanceClusterTime() has not been called, the cluster time will be null.

Параметри

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

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

Returns the cluster time for this session, or null if the session has no cluster time.

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

Прогляньте також