<?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 => 'zh',
  ),
  'this' => 
  array (
    0 => 'intlcalendar.getweekendtransition.php',
    1 => 'IntlCalendar::getWeekendTransition',
    2 => 'Get time of the day at which weekend begins or ends',
  ),
  'up' => 
  array (
    0 => 'class.intlcalendar.php',
    1 => 'IntlCalendar',
  ),
  'prev' => 
  array (
    0 => 'intlcalendar.gettype.php',
    1 => 'IntlCalendar::getType',
  ),
  'next' => 
  array (
    0 => 'intlcalendar.indaylighttime.php',
    1 => 'IntlCalendar::inDaylightTime',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/intl/intlcalendar/getweekendtransition.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="intlcalendar.getweekendtransition" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">IntlCalendar::getWeekendTransition</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::getWeekendTransition</span> &mdash; <span class="dc-title">Get time of the day at which weekend begins or ends</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-intlcalendar.getweekendtransition-description">
  <h3 class="title">说明</h3>
  <p class="para">
   面向对象风格
  </p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>IntlCalendar::getWeekendTransition</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$dayOfWeek</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_weekend_transition</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">$dayOfWeek</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 the number of milliseconds after midnight at which the weekend
   begins or ends.
  </p>
  <p class="para">
   This is only applicable for days of the week for which
   <span class="function"><a href="intlcalendar.getdayofweektype.php" class="function">IntlCalendar::getDayOfWeekType()</a></span> returns either
   <strong><code><a href="class.intlcalendar.php#intlcalendar.constants.dow-type-weekend-offset">IntlCalendar::DOW_TYPE_WEEKEND_OFFSET</a></code></strong> or
   <strong><code><a href="class.intlcalendar.php#intlcalendar.constants.dow-type-weekend-cease">IntlCalendar::DOW_TYPE_WEEKEND_CEASE</a></code></strong>. Calling this
   function for other days of the week is an error condition.
  </p>
  <p class="para">
   This function requires ICU 4.4 or later.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-intlcalendar.getweekendtransition-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">dayOfWeek</code></dt>
    <dd>
     <p class="para">
      One of the constants <strong><code><a href="class.intlcalendar.php#intlcalendar.constants.dow-sunday">IntlCalendar::DOW_SUNDAY</a></code></strong>,
      <strong><code><a href="class.intlcalendar.php#intlcalendar.constants.dow-monday">IntlCalendar::DOW_MONDAY</a></code></strong>, …,
      <strong><code><a href="class.intlcalendar.php#intlcalendar.constants.dow-saturday">IntlCalendar::DOW_SATURDAY</a></code></strong>.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-intlcalendar.getweekendtransition-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   The number of milliseconds into the day at which the weekend begins or
   ends 或者在失败时返回 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
  </p>
 </div>



 <div class="refsect1 examples" id="refsect1-intlcalendar.getweekendtransition-examples">
  <h3 class="title">示例</h3>
  <p class="para">
   See example on <span class="function"><a href="intlcalendar.getdayofweektype.php" class="function">IntlCalendar::getDayOfWeekType()</a></span>.
  </p>
 </div>


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