<?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 => 'pt_BR',
  ),
  'this' => 
  array (
    0 => 'class.intldateformatter.php',
    1 => 'IntlDateFormatter',
    2 => 'A classe 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' => 'pt_BR',
    '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">A classe 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">Introdução</h2>
   <p class="simpara">
    O formatador de datas é uma classe concreta que habilita formatação/interpretação dependetes de localidade de
    datas usando strings de padrões e/ou padrões já existentes.
   </p>

   <p class="simpara">
    Esta classe representa a funcionalidade de formatação de datas da ICU.
    Permite aos usuários apresentar datas em formato dependente de localidade ou converter strings
    em valores de datas do PHP usando strings de padrões e/ou padrões já existentes.
   </p>
  </div>
  

  <div class="section" id="intldateformatter.synopsis">
   <h2 class="title">Resumo da classe</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">Registro de Alterações</h2>
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Versão</th>
       <th>Descrição</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.4.0</td>
       <td>
        Adicionada a constante <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">Veja Também</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;Formatador de Datas 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 Datas ICU</a>
     </li>
    </ul>
   </p>
  </div>

  

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

 <p class="para">
  Estas constantes são usadas para especificar diferentes formatos
  nos construtores para DateType e TimeType.
  <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">Não incluir 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 (Tuesday, April 12, 1952 AD ou 3:30:42pm PST)</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 longo (January 12, 1952 ou 3:30:32pm)</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 médio (Jan 12, 1952)</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">O estilo mais abreviado, apenas dados essenciais (12/13/52 ou 3:30pm)</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">
      O mesmo que <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.full">IntlDateFormatter::FULL</a></code></strong>, porém ontem, hoje e amanhã
      são mostrados como <code class="literal">yesterday</code>, <code class="literal">today</code>, e <code class="literal">tomorrow</code>,
      respectivamente. Disponível a partir do PHP 8.0.0, somente para <code class="parameter">dateType</code>.
     </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">
      O mesmo que <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.long">IntlDateFormatter::LONG</a></code></strong>, porém ontem, hoje e amanhã
      são mostrados como <code class="literal">yesterday</code>, <code class="literal">today</code>, e <code class="literal">tomorrow</code>,
      respectivamente. Disponível a partir do PHP 8.0.0, somente para <code class="parameter">dateType</code>.
     </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">
      O mesmo que <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.medium">IntlDateFormatter::MEDIUM</a></code></strong>, porém ontem, hoje e amanhã
      são mostrados como <code class="literal">yesterday</code>, <code class="literal">today</code>, e <code class="literal">tomorrow</code>,
      respectivamente. Disponível a partir do PHP 8.0.0, somente para <code class="parameter">dateType</code>.
     </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">
      O mesmo que <strong><code><a href="class.intldateformatter.php#intldateformatter.constants.short">IntlDateFormatter::SHORT</a></code></strong>, porém ontem, hoje e amanhã
      são mostrados como <code class="literal">yesterday</code>, <code class="literal">today</code>, e <code class="literal">tomorrow</code>,
      respectivamente. Disponível a partir do PHP 8.0.0, somente para <code class="parameter">dateType</code>.
     </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">
      Usa o padrão informado em <code class="parameter">pattern</code>. Disponível a partir do PHP 8.4.0.
     </span>
    </dd>
   
  </dl>
 </p>

 <p class="para" id="intl.intldateformatter-constants.calendartypes">
  As constantes inteiras a seguir são usadas para especificar o calendário.
  Estes calendários são todos baseados diretamente no calendário gregoriano.
  Calendários não gregorianos precisam ser especificados na localidade.
  Exemplos podem incluir locale=&quot;hi@calendar=BUDDHIST&quot;.
  <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">Calendário Não 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">Calendário Gregoriano</span>
    </dd>
   
  </dl>
 </p>
</div>





  <div class="section" id="intldateformatter.changelog">
   <h2 class="title">Registro de Alterações</h2>
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Versão</th>
       <th>Descrição</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.4.0</td>
       <td>
        As constantes de classe agora são tipadas.
       </td>
      </tr>

     </tbody>
    
   </table>

  </div>
 </div>

 




































































































<h2>Índice</h2><ul class="chunklist chunklist_reference"><li><a href="intldateformatter.create.php">IntlDateFormatter::create</a> — Cria um formatador de data</li><li><a href="intldateformatter.format.php">IntlDateFormatter::format</a> — Formata data/hor&aacute;rio como uma string</li><li><a href="intldateformatter.formatobject.php">IntlDateFormatter::formatObject</a> — Formata um objeto</li><li><a href="intldateformatter.getcalendar.php">IntlDateFormatter::getCalendar</a> — Obt&eacute;m o tipo de calend&aacute;rio usado para o IntlDateFormatter</li><li><a href="intldateformatter.getdatetype.php">IntlDateFormatter::getDateType</a> — Obt&eacute;m o tipo de data usado para o IntlDateFormatter</li><li><a href="intldateformatter.geterrorcode.php">IntlDateFormatter::getErrorCode</a> — Obt&eacute;m o c&oacute;digo de erro da &uacute;ltima opera&ccedil;&atilde;o</li><li><a href="intldateformatter.geterrormessage.php">IntlDateFormatter::getErrorMessage</a> — Obt&eacute;m a mensagem de erro da &uacute;ltima opera&ccedil;&atilde;o</li><li><a href="intldateformatter.getlocale.php">IntlDateFormatter::getLocale</a> — Obt&eacute;m a localidade usada pelo formatador</li><li><a href="intldateformatter.getpattern.php">IntlDateFormatter::getPattern</a> — Obt&eacute;m o modelo usado para o IntlDateFormatter</li><li><a href="intldateformatter.gettimetype.php">IntlDateFormatter::getTimeType</a> — Obt&eacute;m o tipo de hor&aacute;rio usado para o IntlDateFormatter</li><li><a href="intldateformatter.gettimezoneid.php">IntlDateFormatter::getTimeZoneId</a> — Obt&eacute;m o identificador de fuso hor&aacute;rio usado para o IntlDateFormatter</li><li><a href="intldateformatter.getcalendarobject.php">IntlDateFormatter::getCalendarObject</a> — Obt&eacute;m uma c&oacute;pia do objeto de calend&aacute;rio do formatador</li><li><a href="intldateformatter.gettimezone.php">IntlDateFormatter::getTimeZone</a> — Obtem o fuso hor&aacute;rio do formatador</li><li><a href="intldateformatter.islenient.php">IntlDateFormatter::isLenient</a> — Obt&eacute;m a leni&ecirc;ncia usada para o IntlDateFormatter</li><li><a href="intldateformatter.localtime.php">IntlDateFormatter::localtime</a> — Interpreta uma string para um valor de hor&aacute;rio baseado em campos</li><li><a href="intldateformatter.parse.php">IntlDateFormatter::parse</a> — Interpreta uma string para uma valor de timestamp</li><li><a href="intldateformatter.setcalendar.php">IntlDateFormatter::setCalendar</a> — Define o tipo de calend&aacute;rio usado pelo formatador</li><li><a href="intldateformatter.setlenient.php">IntlDateFormatter::setLenient</a> — Define a leni&ecirc;ncia do interpretador</li><li><a href="intldateformatter.setpattern.php">IntlDateFormatter::setPattern</a> — Define o modelo usado para o IntlDateFormatter</li><li><a href="intldateformatter.settimezone.php">IntlDateFormatter::setTimeZone</a> — Define o fuso hor&aacute;rio do formatador</li></ul>
</div>
<?php manual_footer($setup); ?>