<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.mongodb-driver-session.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'mongodb-driver-session.getoperationtime.php',
    1 => 'MongoDB\\Driver\\Session::getOperationTime',
    2 => 'Returns the operation time for this session',
  ),
  'up' => 
  array (
    0 => 'class.mongodb-driver-session.php',
    1 => 'MongoDB\\Driver\\Session',
  ),
  'prev' => 
  array (
    0 => 'mongodb-driver-session.getlogicalsessionid.php',
    1 => 'MongoDB\\Driver\\Session::getLogicalSessionId',
  ),
  'next' => 
  array (
    0 => 'mongodb-driver-session.getserver.php',
    1 => 'MongoDB\\Driver\\Session::getServer',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mongodb/mongodb/driver/session/getoperationtime.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mongodb-driver-session.getoperationtime" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoDB\Driver\Session::getOperationTime</h1>
  <p class="verinfo">(mongodb &gt;=1.4.0)</p><p class="refpurpose"><span class="refname">MongoDB\Driver\Session::getOperationTime</span> &mdash; <span class="dc-title">Returns the operation time for this session</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongodb-driver-session.getoperationtime-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><strong>MongoDB\Driver\Session::getOperationTime</strong></span>(): <span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="class.mongodb-bson-timestamp.php" class="type MongoDB\BSON\Timestamp">MongoDB\BSON\Timestamp</a></span></span></div>

  <p class="simpara">
   Returns the operation time for this session. If the session has not been used
   for any operation and
   <span class="methodname"><a href="mongodb-driver-session.advanceoperationtime.php" class="methodname">MongoDB\Driver\Session::advanceOperationTime()</a></span> has not
   been called, the operation time will be <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-mongodb-driver-session.getoperationtime-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">This function has no parameters.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongodb-driver-session.getoperationtime-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="simpara">
   Returns the operation time for this session, or <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> if the session has no
   operation time.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-mongodb-driver-session.getoperationtime-errors">
  <h3 class="title">Errors/Exceptions</h3>
  <ul class="simplelist">
   <li>Throws <span class="classname"><a href="class.mongodb-driver-exception-invalidargumentexception.php" class="classname">MongoDB\Driver\Exception\InvalidArgumentException</a></span> on argument parsing errors.</li>
  </ul>
 </div>


 <div class="refsect1 seealso" id="refsect1-mongodb-driver-session.getoperationtime-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="mongodb-driver-session.advanceoperationtime.php" class="methodname" rel="rdfs-seeAlso">MongoDB\Driver\Session::advanceOperationTime()</a> - Advances the operation time for this session</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>