Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 8954

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Set minimal number of days the first week in a year or month can have</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="intlcalendar.setlenient.html">IntlCalendar::setLenient</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intlcalendar.setrepeatedwalltimeoption.html">IntlCalendar::setRepeatedWallTimeOption</a></div>
 <div class="up"><a href="class.intlcalendar.html">IntlCalendar</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="intlcalendar.setminimaldaysinfirstweek" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">IntlCalendar::setMinimalDaysInFirstWeek</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.1, PHP 7)</p><p class="refpurpose"><span class="refname">IntlCalendar::setMinimalDaysInFirstWeek</span> &mdash; <span class="dc-title">Set minimal number of days the first week in a year or month can have</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-intlcalendar.setminimaldaysinfirstweek-description">
  <h3 class="title">Description</h3>
  <p class="para">
   Object oriented style
  </p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><strong>IntlCalendar::setMinimalDaysInFirstWeek</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$minimalDays</code></span>
   )</div>

  <p class="para rdfs-comment">
   Procedural style
  </p>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>intlcal_get_minimal_days_in_first_week</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.intlcalendar.html" class="type IntlCalendar">IntlCalendar</a></span> <code class="parameter">$cal</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$minimalDays</code></span>
   )</div>

  <p class="para rdfs-comment">
   Sets the smallest number of days the first week of a year or month must
   have in the new year or month.  For instance, in the Gregorian calendar, if
   this value is 1, then the first week of the year will necessarily include
   January 1st, while if this value is 7, then the week with January 1st will
   be the first week of the year only if the day of the week for January 1st
   matches the day of the week returned by
   <span class="function"><a href="intlcalendar.getfirstdayofweek.html" class="function">IntlCalendar::getFirstDayOfWeek()</a></span>; otherwise it will be
   the previous yearʼs last week.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-intlcalendar.setminimaldaysinfirstweek-parameters">
  <h3 class="title">Parameters</h3>
  <dl>

   
    <dt>
<code class="parameter">cal</code></dt>

    <dd>

     <p class="para">
      The IntlCalendar resource.
     </p>
    </dd>

   
   
    <dt>
<code class="parameter">minimalDays</code></dt>

    <dd>

     <p class="para">
      The number of minimal days to set.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-intlcalendar.setminimaldaysinfirstweek-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   <strong><code>TRUE</code></strong> on success, <strong><code>FALSE</code></strong> on failure.
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="intlcalendar.setlenient.html">IntlCalendar::setLenient</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intlcalendar.setrepeatedwalltimeoption.html">IntlCalendar::setRepeatedWallTimeOption</a></div>
 <div class="up"><a href="class.intlcalendar.html">IntlCalendar</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>