<?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 => 'fr',
  ),
  'this' => 
  array (
    0 => 'mongodb-bson-timestamp.construct.php',
    1 => 'MongoDB\\BSON\\Timestamp::__construct',
    2 => 'Construit un nouveau Timestamp',
  ),
  'up' => 
  array (
    0 => 'class.mongodb-bson-timestamp.php',
    1 => 'MongoDB\\BSON\\Timestamp',
  ),
  'prev' => 
  array (
    0 => 'class.mongodb-bson-timestamp.php',
    1 => 'MongoDB\\BSON\\Timestamp',
  ),
  'next' => 
  array (
    0 => 'mongodb-bson-timestamp.getincrement.php',
    1 => 'MongoDB\\BSON\\Timestamp::getIncrement',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/mongodb/bson/timestamp/construct.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mongodb-bson-timestamp.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoDB\BSON\Timestamp::__construct</h1>
  <p class="verinfo">(mongodb &gt;=1.0.0)</p><p class="refpurpose"><span class="refname">MongoDB\BSON\Timestamp::__construct</span> &mdash; <span class="dc-title">Construit un nouveau Timestamp</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-mongodb-bson-timestamp.construct-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\BSON\Timestamp::__construct</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$increment</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$timestamp</code></span>)</div>

 </div>

 
 <div class="refsect1 parameters" id="refsect1-mongodb-bson-timestamp.construct-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <dl>
   
    <dt><code class="parameter">increment</code> (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)</dt>
    <dd>
     <span class="simpara">
      Entier de 32-bit qui indique l&#039;ordinal incrémentiel pour les opérations dans une seconde donnée.
     </span>
    </dd>
   
   
    <dt><code class="parameter">timestamp</code> (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)</dt>
    <dd>
     <span class="simpara">
      Entier de 32-bit indiquant des secondes depuis l&#039;époque UNIX.
     </span>
    </dd>
   
  </dl>
 </div>

 
 <div class="refsect1 errors" id="refsect1-mongodb-bson-timestamp.construct-errors">
  <h3 class="title">Erreurs / Exceptions</h3>
  <ul class="simplelist">
   <li>Lance une exception <span class="classname"><strong class="classname">MongoDB\Driver\InvalidArgumentException</strong></span> lors d'une erreur survenue pendant l'analyse d'un argument.</li>
  </ul>
 </div>

 
 <div class="refsect1 examples" id="refsect1-mongodb-bson-timestamp.construct-examples">
  <h3 class="title">Exemples</h3>
  <div class="example" id="example-1">
   <p><strong>Exemple #1 Exemple avec <span class="function"><strong>MongoDB\BSON\Timestamp::__construct()</strong></span></strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br />$timestamp </span><span style="color: #007700">= new </span><span style="color: #0000BB">MongoDB\BSON\Timestamp</span><span style="color: #007700">(</span><span style="color: #0000BB">1234</span><span style="color: #007700">, </span><span style="color: #0000BB">5678</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>Résultat de l&#039;exemple ci-dessus est similaire à :</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">object(MongoDB\BSON\Timestamp)#1 (2) {
  [&quot;increment&quot;]=&gt;
  int(1234)
  [&quot;timestamp&quot;]=&gt;
  int(5678)
}</pre>
</div>
   </div>
  </div>
 </div>

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

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