<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.intl.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'es',
  ),
  'this' => 
  array (
    0 => 'class.intldateformatter.php',
    1 => 'IntlDateFormatter',
    2 => 'La clase IntlDateFormatter',
  ),
  'up' => 
  array (
    0 => 'book.intl.php',
    1 => 'intl',
  ),
  'prev' => 
  array (
    0 => 'intltimezone.usedaylighttime.php',
    1 => 'IntlTimeZone::useDaylightTime',
  ),
  'next' => 
  array (
    0 => 'intldateformatter.create.php',
    1 => 'IntlDateFormatter::create',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'es',
    'path' => 'reference/intl/dateformatter.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.intldateformatter.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.intldateformatter" class="reference">
 <h1 class="title">La clase IntlDateFormatter</h1>
 

 <div class="partintro"><p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8, PECL intl &gt;= 1.0.0)</p>

  
  <div class="section" id="intldateformatter.intro">
   <h2 class="title">Introducción</h2>
   <p class="simpara">
    La clase <span class="classname"><strong class="classname">DateFormatter</strong></span> es una clase concreta,
    que activa el análisis y el formato de fechas, basado en cadenas modelo,
    o reglas.
   </p>

   <p class="simpara">
    Esta clase representa las funcionalidades de formato de fechas ICU.
    Permite a los usuarios mostrar fechas en un formato localizado,
    o analizar cadenas PHP para extraer fechas.
   </p>
  </div>
  

  <div class="section" id="intldateformatter.synopsis">
   <h2 class="title">Sinopsis de la clase</h2>

   
   <div class="classsynopsis"><div class="classsynopsisinfo">
    
     <span class="modifier">class</span> <strong class="classname"><strong class="classname">IntlDateFormatter</strong></strong>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Constantes */</div>
    <div class="fieldsynopsis">
     <span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
      <var class="fieldsynopsis_varname"><a href="class.intldateformatter.php#intldateformatter.constants.full"><var class="varname">FULL</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
      <var class="fieldsynopsis_varname"><a href="class.intldateformatter.php#intldateformatter.constants.long"><var class="varname">LONG</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
      <var class="fieldsynopsis_varname"><a href="class.intldateformatter.php#intldateformatter.constants.medium"><var class="varname">MEDIUM</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
      <var class="fieldsynopsis_varname"><a href="class.intldateformatter.php#intldateformatter.constants.short"><var class="varname">SHORT</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
      <var class="fieldsynopsis_varname"><a href="class.intldateformatter.php#intldateformatter.constants.none"><var class="varname">NONE</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
      <var class="fieldsynopsis_varname"><a href="class.intldateformatter.php#intldateformatter.constants.relative-full"><var class="varname">RELATIVE_FULL</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
      <var class="fieldsynopsis_varname"><a href="class.intldateformatter.php#intldateformatter.constants.relative-long"><var class="varname">RELATIVE_LONG</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
      <var class="fieldsynopsis_varname"><a href="class.intldateformatter.php#intldateformatter.constants.relative-medium"><var class="varname">RELATIVE_MEDIUM</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
      <var class="fieldsynopsis_varname"><a href="class.intldateformatter.php#intldateformatter.constants.relative-short"><var class="varname">RELATIVE_SHORT</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
      <var class="fieldsynopsis_varname"><a href="class.intldateformatter.php#intldateformatter.constants.pattern"><var class="varname">PATTERN</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
      <var class="fieldsynopsis_varname"><a href="class.intldateformatter.php#intldateformatter.constants.gregorian"><var class="varname">GREGORIAN</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
      <var class="fieldsynopsis_varname"><a href="class.intldateformatter.php#intldateformatter.constants.traditional"><var class="varname">TRADITIONAL</var></a></var>;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Métodos */</div>
    <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="intldateformatter.create.php" class="methodname">__construct</a></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$locale</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$dateType</code><span class="initializer"> = <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.full">IntlDateFormatter::FULL</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$timeType</code><span class="initializer"> = <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.full">IntlDateFormatter::FULL</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="class.intltimezone.php" class="type IntlTimeZone">IntlTimeZone</a></span>|<span class="type"><a href="class.datetimezone.php" class="type DateTimeZone">DateTimeZone</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.null.php" class="type null">null</a></span></span> <code class="parameter">$timezone</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="class.intlcalendar.php" class="type IntlCalendar">IntlCalendar</a></span>|<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.null.php" class="type null">null</a></span></span> <code class="parameter">$calendar</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$pattern</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span><br>)</div>

    <div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><a href="intldateformatter.create.php" class="methodname">create</a></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$locale</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$dateType</code><span class="initializer"> = <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.full">IntlDateFormatter::FULL</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$timeType</code><span class="initializer"> = <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.full">IntlDateFormatter::FULL</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="class.intltimezone.php" class="type IntlTimeZone">IntlTimeZone</a></span>|<span class="type"><a href="class.datetimezone.php" class="type DateTimeZone">DateTimeZone</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.null.php" class="type null">null</a></span></span> <code class="parameter">$timezone</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="class.intlcalendar.php" class="type IntlCalendar">IntlCalendar</a></span>|<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.null.php" class="type null">null</a></span></span> <code class="parameter">$calendar</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$pattern</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span><br>): <span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="class.intldateformatter.php" class="type IntlDateFormatter">IntlDateFormatter</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="intldateformatter.format.php" class="methodname">format</a></span>(<span class="methodparam"><span class="type"><span class="type"><a href="class.intlcalendar.php" class="type IntlCalendar">IntlCalendar</a></span>|<span class="type"><a href="class.datetimeinterface.php" class="type DateTimeInterface">DateTimeInterface</a></span>|<span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.float.php" class="type float">float</a></span></span> <code class="parameter">$datetime</code></span>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><a href="intldateformatter.formatobject.php" class="methodname">formatObject</a></span>(<span class="methodparam"><span class="type"><span class="type"><a href="class.intlcalendar.php" class="type IntlCalendar">IntlCalendar</a></span>|<span class="type"><a href="class.datetimeinterface.php" class="type DateTimeInterface">DateTimeInterface</a></span></span> <code class="parameter">$datetime</code></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.null.php" class="type null">null</a></span></span> <code class="parameter">$format</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$locale</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="intldateformatter.getcalendar.php" class="methodname">getCalendar</a></span>(): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="intldateformatter.getdatetype.php" class="methodname">getDateType</a></span>(): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="intldateformatter.geterrorcode.php" class="methodname">getErrorCode</a></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="intldateformatter.geterrormessage.php" class="methodname">getErrorMessage</a></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="intldateformatter.getlocale.php" class="methodname">getLocale</a></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$type</code><span class="initializer"> = <strong><code><a href="intl.constants.php#constant.uloc-actual-locale">ULOC_ACTUAL_LOCALE</a></code></strong></span></span>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="intldateformatter.getpattern.php" class="methodname">getPattern</a></span>(): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="intldateformatter.gettimetype.php" class="methodname">getTimeType</a></span>(): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="intldateformatter.gettimezoneid.php" class="methodname">getTimeZoneId</a></span>(): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="intldateformatter.getcalendarobject.php" class="methodname">getCalendarObject</a></span>(): <span class="type"><span class="type"><a href="class.intlcalendar.php" class="type IntlCalendar">IntlCalendar</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span>|<span class="type"><a href="language.types.null.php" class="type null">null</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="intldateformatter.gettimezone.php" class="methodname">getTimeZone</a></span>(): <span class="type"><span class="type"><a href="class.intltimezone.php" class="type IntlTimeZone">IntlTimeZone</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="intldateformatter.islenient.php" class="methodname">isLenient</a></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="intldateformatter.localtime.php" class="methodname">localtime</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$string</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter reference">&$offset</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="intldateformatter.parse.php" class="methodname">parse</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$string</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter reference">&$offset</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.float.php" class="type float">float</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="intldateformatter.setcalendar.php" class="methodname">setCalendar</a></span>(<span class="methodparam"><span class="type"><span class="type"><a href="class.intlcalendar.php" class="type IntlCalendar">IntlCalendar</a></span>|<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.null.php" class="type null">null</a></span></span> <code class="parameter">$calendar</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="intldateformatter.setlenient.php" class="methodname">setLenient</a></span>(<span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$lenient</code></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="intldateformatter.setpattern.php" class="methodname">setPattern</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$pattern</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="intldateformatter.settimezone.php" class="methodname">setTimeZone</a></span>(<span class="methodparam"><span class="type"><span class="type"><a href="class.intltimezone.php" class="type IntlTimeZone">IntlTimeZone</a></span>|<span class="type"><a href="class.datetimezone.php" class="type DateTimeZone">DateTimeZone</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.null.php" class="type null">null</a></span></span> <code class="parameter">$timezone</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

   }</div>
   

  </div>

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

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.4.0</td>
       <td>
        Se añadió <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.pattern">IntlDateFormatter::PATTERN</a></code></strong>.
       </td>
      </tr>

     </tbody>
    
   </table>

  </div>

  <div class="section" id="intldateformatter.seealso">
   <h2 class="title">Ver también</h2>
   <p class="para">
    <ul class="simplelist">
     <li>
      <a href="https://unicode-org.github.io/icu-docs/apidoc/dev/icu4c/udat_8h.html" class="link external">&raquo;&nbsp;Formateador de fechas ICU</a>
     </li>
    </ul>
    <ul class="simplelist">
     <li>
      <a href="https://unicode-org.github.io/icu/userguide/format_parse/datetime/#datetime-format-syntax" class="link external">&raquo;&nbsp;Formatos de fechas ICU</a>
     </li>
    </ul>
   </p>
  </div>

  



<div class="section" id="intl.intldateformatter-constants">
 <h2 class="title">Constantes predefinidas</h2>

 <p class="para">
  Estas constantes se utilizan para especificar diferentes
  formatos en el constructor de las clases
  <span class="classname"><strong class="classname">DateType</strong></span> y <span class="classname"><strong class="classname">TimeType</strong></span>.
  <dl>
   
    <dt id="intldateformatter.constants.none">
     <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.none">IntlDateFormatter::NONE</a></code></strong>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
    </dt>
    <dd>
     <span class="simpara">No incluye este elemento</span>
    </dd>
   
   
    <dt id="intldateformatter.constants.full">
     <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.full">IntlDateFormatter::FULL</a></code></strong>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
    </dt>
    <dd>
     <span class="simpara">Estilo completamente especificado (<code class="literal">Tuesday, April 12, 1952 AD or 3:30:42pm PST</code>)</span>
    </dd>
   
   
    <dt id="intldateformatter.constants.long">
     <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.long">IntlDateFormatter::LONG</a></code></strong>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
    </dt>
    <dd>
     <span class="simpara">
      Estilo largo (<code class="literal">January 12, 1952 or 3:30:32pm</code>)
     </span>
    </dd>
   
   
    <dt id="intldateformatter.constants.medium">
     <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.medium">IntlDateFormatter::MEDIUM</a></code></strong>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
    </dt>
    <dd>
     <span class="simpara">Estilo intermedio (<code class="literal">Jan 12, 1952</code>)</span>
    </dd>
   
   
    <dt id="intldateformatter.constants.short">
     <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.short">IntlDateFormatter::SHORT</a></code></strong>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
    </dt>
    <dd>
     <span class="simpara">Estilo abreviado, solo la información esencial
      (<code class="literal">12/13/52</code> o <code class="literal">3:30pm</code>)
     </span>
         </dd>
   
   
    <dt id="intldateformatter.constants.relative-full">
     <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.relative-full">IntlDateFormatter::RELATIVE_FULL</a></code></strong>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
    </dt>
    <dd>
     <span class="simpara">
      Idéntico a <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.full">IntlDateFormatter::FULL</a></code></strong>, pero ayer, hoy, y mañana
      se muestran como <code class="literal">yesterday</code>, <code class="literal">today</code>, y <code class="literal">tomorrow</code>,
      respectivamente. Disponible a partir de PHP 8.0.0, para <code class="parameter">dateType</code> únicamente.
     </span>
    </dd>
   
   
    <dt id="intldateformatter.constants.relative-long">
     <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.relative-long">IntlDateFormatter::RELATIVE_LONG</a></code></strong>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
    </dt>
    <dd>
     <span class="simpara">
      Idéntico a <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.long">IntlDateFormatter::LONG</a></code></strong>, pero ayer, hoy, y mañana
      se muestran como <code class="literal">yesterday</code>, <code class="literal">today</code>, y <code class="literal">tomorrow</code>,
      respectivamente. Disponible a partir de PHP 8.0.0, para <code class="parameter">dateType</code> únicamente.
     </span>
    </dd>
   
   
    <dt id="intldateformatter.constants.relative-medium">
     <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.relative-medium">IntlDateFormatter::RELATIVE_MEDIUM</a></code></strong>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
    </dt>
    <dd>
     <span class="simpara">
      Idéntico a <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.medium">IntlDateFormatter::MEDIUM</a></code></strong>, pero ayer, hoy, y mañana
      se muestran como <code class="literal">yesterday</code>, <code class="literal">today</code>, y <code class="literal">tomorrow</code>,
      respectivamente. Disponible a partir de PHP 8.0.0, para <code class="parameter">dateType</code> únicamente.
     </span>
    </dd>
   
   
    <dt id="intldateformatter.constants.relative-short">
     <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.relative-short">IntlDateFormatter::RELATIVE_SHORT</a></code></strong>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
    </dt>
    <dd>
     <span class="simpara">
      Idéntico a <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.short">IntlDateFormatter::SHORT</a></code></strong>, pero ayer, hoy, y mañana
      se muestran como <code class="literal">yesterday</code>, <code class="literal">today</code>, y <code class="literal">tomorrow</code>,
      respectivamente. Disponible a partir de PHP 8.0.0, para <code class="parameter">dateType</code> únicamente.
     </span>
    </dd>
   
   
    <dt id="intldateformatter.constants.pattern">
     <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.pattern">IntlDateFormatter::PATTERN</a></code></strong>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
    </dt>
    <dd>
     <span class="simpara">
      Utiliza el patrón dado en <code class="parameter">pattern</code>. Disponible a partir de PHP 8.4.0.
     </span>
    </dd>
   
  </dl>
 </p>

 <p class="para" id="intl.intldateformatter-constants.calendartypes">
  Las constantes enteras siguientes se utilizan para especificar calendarios.
  Estos calendarios se basan directamente en el calendario gregoriano.
  Los calendarios no gregorianos deben especificarse en una configuración local.
  Los ejemplos pueden incluir <code class="literal">locale=&quot;hi@calendar=BUDDHIST&quot;</code>.
  <dl>
   
    <dt id="intldateformatter.constants.traditional">
     <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.traditional">IntlDateFormatter::TRADITIONAL</a></code></strong>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
    </dt>
    <dd>
     <span class="simpara">Calendario no gregoriano</span>
    </dd>
   
   
    <dt id="intldateformatter.constants.gregorian">
     <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.gregorian">IntlDateFormatter::GREGORIAN</a></code></strong>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
    </dt>
    <dd>
     <span class="simpara">Calendario gregoriano</span>
    </dd>
   
  </dl>
 </p>
</div>



  <div class="section" id="intldateformatter.changelog">
   <h2 class="title">Historial de cambios</h2>
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Versión</th>
       <th>Descripción</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.4.0</td>
       <td>
        Las constantes de clase ahora están tipadas.
       </td>
      </tr>

     </tbody>
    
   </table>

  </div>
 </div>

 




























































































































<h2>Tabla de contenidos</h2><ul class="chunklist chunklist_reference"><li><a href="intldateformatter.create.php">IntlDateFormatter::create</a> — Crea un formateador de fecha</li><li><a href="intldateformatter.format.php">IntlDateFormatter::format</a> — Formatea la fecha y la hora como string</li><li><a href="intldateformatter.formatobject.php">IntlDateFormatter::formatObject</a> — Formatea un objeto</li><li><a href="intldateformatter.getcalendar.php">IntlDateFormatter::getCalendar</a> — Lee el calendario utilizado por el objeto IntlDateFormatter</li><li><a href="intldateformatter.getdatetype.php">IntlDateFormatter::getDateType</a> — Lee el tipo de fecha utilizado por IntlDateFormatter</li><li><a href="intldateformatter.geterrorcode.php">IntlDateFormatter::getErrorCode</a> — Lee el c&oacute;digo de error de la &uacute;ltima operaci&oacute;n</li><li><a href="intldateformatter.geterrormessage.php">IntlDateFormatter::getErrorMessage</a> — Lee el &uacute;ltimo mensaje de error</li><li><a href="intldateformatter.getlocale.php">IntlDateFormatter::getLocale</a> — Lee la configuraci&oacute;n local utilizada por el formateador</li><li><a href="intldateformatter.getpattern.php">IntlDateFormatter::getPattern</a> — Lee el patr&oacute;n utilizado por IntlDateFormatter</li><li><a href="intldateformatter.gettimetype.php">IntlDateFormatter::getTimeType</a> — Lee el tipo de tiempo para IntlDateFormatter</li><li><a href="intldateformatter.gettimezoneid.php">IntlDateFormatter::getTimeZoneId</a> — Lee el huso horario de IntlDateFormatter</li><li><a href="intldateformatter.getcalendarobject.php">IntlDateFormatter::getCalendarObject</a> — Obtiene una copia del objeto formateador de calendario</li><li><a href="intldateformatter.gettimezone.php">IntlDateFormatter::getTimeZone</a> — Obtiene el formateador del huso horario</li><li><a href="intldateformatter.islenient.php">IntlDateFormatter::isLenient</a> — Devuelve la severidad utilizada para IntlDateFormatter</li><li><a href="intldateformatter.localtime.php">IntlDateFormatter::localtime</a> — Analiza una cadena y la convierte en tiempo</li><li><a href="intldateformatter.parse.php">IntlDateFormatter::parse</a> — Analiza una cadena hacia un timestamp</li><li><a href="intldateformatter.setcalendar.php">IntlDateFormatter::setCalendar</a> — Define el tipo de calendario utilizado por el formateador</li><li><a href="intldateformatter.setlenient.php">IntlDateFormatter::setLenient</a> — Configura la flexibilidad del analizador</li><li><a href="intldateformatter.setpattern.php">IntlDateFormatter::setPattern</a> — Configura el patr&oacute;n utilizado por IntlDateFormatter</li><li><a href="intldateformatter.settimezone.php">IntlDateFormatter::setTimeZone</a> — Define el formateador para el desplazamiento horario</li></ul>
</div>
<?php manual_footer($setup); ?>