<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/mongodb.bson.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'es',
  ),
  'this' => 
  array (
    0 => 'class.mongodb-bson-utcdatetime.php',
    1 => 'MongoDB\\BSON\\UTCDatetime',
    2 => 'La clase MongoDB\\BSON\\UTCDatetime',
  ),
  'up' => 
  array (
    0 => 'mongodb.bson.php',
    1 => 'MongoDB\\BSON',
  ),
  'prev' => 
  array (
    0 => 'mongodb-bson-timestamp.tostring.php',
    1 => 'MongoDB\\BSON\\Timestamp::__toString',
  ),
  'next' => 
  array (
    0 => 'mongodb-bson-utcdatetime.construct.php',
    1 => 'MongoDB\\BSON\\UTCDateTime::__construct',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'es',
    'path' => 'reference/mongodb/bson/utcdatetime.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.mongodb-bson-utcdatetime.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.mongodb-bson-utcdatetime" class="reference">

 <h1 class="title">La clase MongoDB\BSON\UTCDatetime</h1>
 

 <div class="partintro"><p class="verinfo">(mongodb &gt;=1.0.0)</p>


  <div class="section" id="mongodb-bson-utcdatetime.intro">
   <h2 class="title">Introducción</h2>
   <p class="para">
    Representa una
    <a href="https://www.mongodb.com/docs/manual/reference/bson-types/#date" class="link external">&raquo;&nbsp;fecha BSON</a>. El valor
    es un integer de 64 bits que representa el número de milisegundos desde
    la época UNIX (1 de enero de 1970). Los valores negativos representan fechas anteriores a 1970.
   </p>
  </div>


  <div class="section" id="mongodb-bson-utcdatetime.synopsis">
   <h2 class="title">Sinopsis de la Clase</h2>


   <div class="classsynopsis">
    <span class="ooclass"><strong class="classname"></strong></span>


    <div class="classsynopsisinfo">
     <span class="modifier">final</span>
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">MongoDB\BSON\UTCDateTime</strong>
     </span>

     <span class="oointerface"><span class="modifier">implements</span> 
       <a href="class.mongodb-bson-utcdatetimeinterface.php" class="interfacename">MongoDB\BSON\UTCDateTimeInterface</a></span><span class="oointerface">,  <a href="class.mongodb-bson-type.php" class="interfacename">MongoDB\BSON\Type</a></span><span class="oointerface">,  <a href="class.jsonserializable.php" class="interfacename">JsonSerializable</a></span><span class="oointerface">,  <a href="class.stringable.php" class="interfacename">Stringable</a></span> {</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Métodos */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><a href="mongodb-bson-utcdatetime.construct.php" class="methodname">__construct</a></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="class.mongodb-bson-int64.php" class="type MongoDB\BSON\Int64">MongoDB\BSON\Int64</a></span>|<span class="type"><a href="class.datetimeinterface.php" class="type DateTimeInterface">DateTimeInterface</a></span>|<span class="type"><a href="language.types.null.php" class="type null">null</a></span></span> <code class="parameter">$milliseconds</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>)</div>
<div class="methodsynopsis dc-description"><span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><a href="mongodb-bson-utcdatetime.jsonserialize.php" class="methodname">jsonSerialize</a></span>(): <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><a href="mongodb-bson-utcdatetime.todatetime.php" class="methodname">MongoDB\BSON\UTCDatetime::toDateTime</a></span>(): <span class="type"><a href="class.datetime.php" class="type DateTime">DateTime</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><a href="mongodb-bson-utcdatetime.todatetimeimmutable.php" class="methodname">toDateTimeImmutable</a></span>(): <span class="type"><a href="class.datetimeimmutable.php" class="type DateTimeImmutable">DateTimeImmutable</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><a href="mongodb-bson-utcdatetime.tostring.php" class="methodname">__toString</a></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

   }</div>


  </div>

  <div class="section">
   <h2 class="title">Historial de cambios</h2>
   <p class="para">
    <table class="doctable informaltable">
     
      <thead>
       <tr>
        <th>Versión</th>
        <th>Descripción</th>
       </tr>

      </thead>

      <tbody class="tbody">
       
    <tr>
        <td>PECL mongodb 2.0.0</td>
        <td>
            <p class="para">
                Esta clase ya no implementa la interfaz
                <span class="interfacename"><a href="class.serializable.php" class="interfacename">Serializable</a></span>.
            </p>
        </td>
    </tr>


       <tr>
        <td>PECL mongodb 1.12.0</td>
        <td>
         Implementa <span class="interfacename"><a href="class.stringable.php" class="interfacename">Stringable</a></span> para PHP 8.0+.
        </td>
       </tr>

       <tr>
        <td>PECL mongodb 1.3.0</td>
        <td>
         Implementa <span class="interfacename"><a href="class.mongodb-bson-utcdatetimeinterface.php" class="interfacename">MongoDB\BSON\UTCDateTimeInterface</a></span>.
        </td>
       </tr>

       <tr>
        <td>PECL mongodb 1.2.0</td>
        <td>
         Implementa <span class="interfacename"><a href="class.serializable.php" class="interfacename">Serializable</a></span> y
         <span class="interfacename"><a href="class.jsonserializable.php" class="interfacename">JsonSerializable</a></span>.
        </td>
       </tr>

      </tbody>
     
    </table>

   </p>
  </div>

 </div>

 










































<h2>Tabla de contenidos</h2><ul class="chunklist chunklist_reference"><li><a href="mongodb-bson-utcdatetime.construct.php">MongoDB\BSON\UTCDateTime::__construct</a> — Construye un nuevo UTCDateTime</li><li><a href="mongodb-bson-utcdatetime.jsonserialize.php">MongoDB\BSON\UTCDateTime::jsonSerialize</a> — Devuelve una representaci&oacute;n que puede ser convertida en JSON</li><li><a href="mongodb-bson-utcdatetime.todatetime.php">MongoDB\BSON\UTCDateTime::toDateTime</a> — Devuelve la representaci&oacute;n DateTime de este UTCDateTime</li><li><a href="mongodb-bson-utcdatetime.todatetimeimmutable.php">MongoDB\BSON\UTCDateTime::toDateTimeImmutable</a> — Devuelve la representaci&oacute;n DateTimeImmutable de esta UTCDateTime</li><li><a href="mongodb-bson-utcdatetime.tostring.php">MongoDB\BSON\UTCDateTime::__toString</a> — Devuelve la representaci&oacute;n en forma de string de este UTCDateTime</li></ul>
</div>
<?php manual_footer($setup); ?>