<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.mongodb-bson-timestamp.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'mongodb-bson-timestamp.gettimestamp.php',
    1 => 'MongoDB\\BSON\\Timestamp::getTimestamp',
    2 => 'Returns the timestamp component of this Timestamp',
  ),
  'up' => 
  array (
    0 => 'class.mongodb-bson-timestamp.php',
    1 => 'MongoDB\\BSON\\Timestamp',
  ),
  'prev' => 
  array (
    0 => 'mongodb-bson-timestamp.getincrement.php',
    1 => 'MongoDB\\BSON\\Timestamp::getIncrement',
  ),
  'next' => 
  array (
    0 => 'mongodb-bson-timestamp.jsonserialize.php',
    1 => 'MongoDB\\BSON\\Timestamp::jsonSerialize',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mongodb/bson/timestamp/gettimestamp.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mongodb-bson-timestamp.gettimestamp" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoDB\BSON\Timestamp::getTimestamp</h1>
  <p class="verinfo">(mongodb &gt;=1.3.0)</p><p class="refpurpose"><span class="refname">MongoDB\BSON\Timestamp::getTimestamp</span> &mdash; <span class="dc-title">Returns the timestamp component of this Timestamp</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongodb-bson-timestamp.gettimestamp-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><strong>MongoDB\BSON\Timestamp::getTimestamp</strong></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   The timestamp component of a Timestamp is its most significant 32 bits, which
   denotes the number of seconds since the Unix epoch. This value is read as an
   unsigned 32-bit integer with big-endian byte order.
  </p>
  
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
   <span class="simpara">
    Da der Integer-Typ bei PHP vorzeichenbehaftet ist, könnten einige Werte,
    die von dieser Methode zurückgegeben werden, auf 32-Bit-Plattformen als
    negative Ganzzahlen erscheinen. Um eine Zeichenketten-Darstellung des
    Dezimalwertes ohne Vorzeichen zu erhalten, kann das Formatierungszeichen
    <code class="literal">&quot;%u&quot;</code> von <span class="function"><a href="function.sprintf.php" class="function">sprintf()</a></span> verwendet werden.
   </span>
  </p></blockquote>

 </div>


 <div class="refsect1 parameters" id="refsect1-mongodb-bson-timestamp.gettimestamp-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">Diese Funktion besitzt keine Parameter.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongodb-bson-timestamp.gettimestamp-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Returns the timestamp component of this Timestamp.
  </p>
  <div class="warning"><strong class="warning">Warnung</strong>
   <p class="simpara">
    On 32-bit systems this method may return a negative number. Although the
    increment and timestamp parts of the BSON timestamp type consists of two
    unsigned 32-bit values, PHP can not represent these on 32-bit platforms.
   </p>
  </div>
 </div>


 <div class="refsect1 errors" id="refsect1-mongodb-bson-timestamp.gettimestamp-errors">
  <h3 class="title">Fehler/Exceptions</h3>
  <ul class="simplelist">
   <li>Wirft eine <span class="classname"><a href="class.mongodb-driver-exception-invalidargumentexception.php" class="classname">MongoDB\Driver\Exception\InvalidArgumentException</a></span>, wenn beim Analysieren von Argumenten ein Fehler auftritt.</li>
  </ul>
 </div>


 <div class="refsect1 seealso" id="refsect1-mongodb-bson-timestamp.gettimestamp-seealso">
  <h3 class="title">Siehe auch</h3>
  <ul class="simplelist">
   <li><a href="https://www.mongodb.com/docs/manual/reference/bson-types/#timestamps" class="link external">&raquo;&nbsp;BSON Types: Timestamps</a></li>
  </ul>
 </div>


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