<?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.before.php',
    1 => 'IntlCalendar::before',
    2 => 'Whether this objectʼs time is before that of the passed object',
  ),
  'up' => 
  array (
    0 => 'class.intlcalendar.php',
    1 => 'IntlCalendar',
  ),
  'prev' => 
  array (
    0 => 'intlcalendar.after.php',
    1 => 'IntlCalendar::after',
  ),
  'next' => 
  array (
    0 => 'intlcalendar.clear.php',
    1 => 'IntlCalendar::clear',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/intl/intlcalendar/before.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="intlcalendar.before" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">IntlCalendar::before</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::before</span> &mdash; <span class="dc-title">Whether this objectʼs time is before that of the passed object</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-intlcalendar.before-description">
  <h3 class="title">说明</h3>
  <p class="para">
   面向对象风格
  </p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>IntlCalendar::before</strong></span>(<span class="methodparam"><span class="type"><a href="class.intlcalendar.php" class="type IntlCalendar">IntlCalendar</a></span> <code class="parameter">$other</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   过程化风格
  </p>
  <div class="methodsynopsis dc-description"><span class="methodname"><strong>intlcal_before</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="class.intlcalendar.php" class="type IntlCalendar">IntlCalendar</a></span> <code class="parameter">$other</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Returns whether this objectʼs time precedes the argumentʼs time.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-intlcalendar.before-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">other</code></dt>
    <dd>
     <p class="para">
      The calendar whose time will be checked against the primary objectʼs time.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-intlcalendar.before-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if this objectʼs current time is before that of the
   <code class="parameter">calendar</code> argumentʼs time. Returns <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> otherwise.
  </p>
  <p class="para">On failure <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> is also returned. To detect error conditions use <span class="function"><a href="function.intl-get-error-code.php" class="function">intl_get_error_code()</a></span>, or set up Intl to throw <a href="intl.configuration.php#ini.intl.use-exceptions" class="link">exceptions</a>.</p>
 </div>


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