<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.intlcalendar.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'intlcalendar.getactualmaximum.php',
    1 => 'IntlCalendar::getActualMaximum',
    2 => 'The maximum value for a field, considering the objectʼs current time',
  ),
  'up' => 
  array (
    0 => 'class.intlcalendar.php',
    1 => 'IntlCalendar',
  ),
  'prev' => 
  array (
    0 => 'intlcalendar.get.php',
    1 => 'IntlCalendar::get',
  ),
  'next' => 
  array (
    0 => 'intlcalendar.getactualminimum.php',
    1 => 'IntlCalendar::getActualMinimum',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/intl/intlcalendar/getactualmaximum.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="intlcalendar.getactualmaximum" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">IntlCalendar::getActualMaximum</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.0, PHP 7, PHP 8, PECL &gt;= 3.0.0a1)</p><p class="refpurpose"><span class="refname">IntlCalendar::getActualMaximum</span> &mdash; <span class="dc-title">The maximum value for a field, considering the objectʼs current time</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-intlcalendar.getactualmaximum-description">
  <h3 class="title">Опис</h3>
  <p class="para">
   Об&#039;єктно-орієнтований стиль
  </p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>IntlCalendar::getActualMaximum</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$field</code></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>

  <p class="para rdfs-comment">
   Процедурний стиль
  </p>
  <div class="methodsynopsis dc-description"><span class="methodname"><strong>intlcal_get_actual_maximum</strong></span>(<span class="methodparam"><span class="type"><a href="class.intlcalendar.php" class="type IntlCalendar">IntlCalendar</a></span> <code class="parameter">$calendar</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$field</code></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>

  <p class="para rdfs-comment">
   Returns a fieldʼs relative maximum value around the current time. The exact
   semantics vary by field, but in the general case this is the value that
   would be obtained if one would set the field value into the
   <a href="intlcalendar.getleastmaximum.php" class="link">smallest relative maximum</a> for
   the field and would increment it until reaching the
   <a href="intlcalendar.getmaximum.php" class="link">global maximum</a> or the field value
   wraps around, in which the value returned would be the global maximum
   or the value before the wrapping, respectively.
  </p>
  <p class="para">
   For instance, in the gregorian calendar, the actual maximum value for the
   <a href="class.intlcalendar.php#intlcalendar.constants.field-day-of-month" class="link">day of
   month</a> would vary between <code class="literal">28</code> and
   <code class="literal">31</code>, depending on the month and year of the current time.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-intlcalendar.getactualmaximum-parameters">
  <h3 class="title">Параметри</h3>
  <dl>
   
    <dt><code class="parameter">calendar</code></dt>
    <dd>
     <p class="para">Примірник
<span class="classname"><a href="class.intlcalendar.php" class="classname">IntlCalendar</a></span>.</p>
    </dd>
   
   
    <dt><code class="parameter">field</code></dt>
    <dd>
     


<p class="para">
 Одна із
  <a href="class.intlcalendar.php#intlcalendar.constants" class="link">предвизначених констант</a>
  дати/часу для <span class="classname"><a href="class.intlcalendar.php" class="classname">IntlCalendar</a></span>. Вони мають цілочисельний
  (integer) тип зі значенням між <code class="literal">0</code> та
 <strong><code>IntlCalendar::FIELD_COUNT</code></strong>.
</p>

    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-intlcalendar.getactualmaximum-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   An <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> representing the maximum value in the units associated
   with the given <code class="parameter">field</code> або <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> в разі помилки.
  </p>
 </div>



 <div class="refsect1 examples" id="refsect1-intlcalendar.getactualmaximum-examples">
  <h3 class="title">Приклади</h3>
  <p class="para">
   <div class="example" id="example-1">
   <p><strong>Приклад #1 <span class="function"><strong>IntlCalendar::getActualMaximum()</strong></span></strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />ini_set</span><span style="color: #007700">(</span><span style="color: #DD0000">'date.timezone'</span><span style="color: #007700">, </span><span style="color: #DD0000">'Europe/Lisbon'</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$cal </span><span style="color: #007700">= </span><span style="color: #0000BB">IntlCalendar</span><span style="color: #007700">::</span><span style="color: #0000BB">fromDateTime</span><span style="color: #007700">(</span><span style="color: #DD0000">'2013-02-15'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$cal</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getActualMaximum</span><span style="color: #007700">(</span><span style="color: #0000BB">IntlCalendar</span><span style="color: #007700">::</span><span style="color: #0000BB">FIELD_DAY_OF_MONTH</span><span style="color: #007700">)); </span><span style="color: #FF8000">//28<br /><br /></span><span style="color: #0000BB">$cal</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">add</span><span style="color: #007700">(</span><span style="color: #0000BB">IntlCalendar</span><span style="color: #007700">::</span><span style="color: #0000BB">FIELD_EXTENDED_YEAR</span><span style="color: #007700">, -</span><span style="color: #0000BB">1</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$cal</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getActualMaximum</span><span style="color: #007700">(</span><span style="color: #0000BB">IntlCalendar</span><span style="color: #007700">::</span><span style="color: #0000BB">FIELD_DAY_OF_MONTH</span><span style="color: #007700">)); </span><span style="color: #FF8000">//29</span></span></code></div>
    </div>

    <div class="example-contents"><p>Поданий вище приклад
виведе:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">int(28)
int(29)</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-intlcalendar.getactualmaximum-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="intlcalendar.getmaximum.php" class="methodname" rel="rdfs-seeAlso">IntlCalendar::getMaximum()</a> - Get the global maximum value for a field</span></li>
    <li><span class="methodname"><a href="intlcalendar.getleastmaximum.php" class="methodname" rel="rdfs-seeAlso">IntlCalendar::getLeastMaximum()</a> - Get the smallest local maximum for a field</span></li>
    <li><span class="methodname"><a href="intlcalendar.getactualminimum.php" class="methodname" rel="rdfs-seeAlso">IntlCalendar::getActualMinimum()</a> - The minimum value for a field, considering the objectʼs current time</span></li>
   </ul>
  </p>
 </div>


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