<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.datetime.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.date-sub.php',
    1 => 'date_sub',
    2 => '别名 DateTime::sub',
  ),
  'up' => 
  array (
    0 => 'ref.datetime.php',
    1 => 'Date/Time 函数',
  ),
  'prev' => 
  array (
    0 => 'function.date-parse-from-format.php',
    1 => 'date_parse_from_format',
  ),
  'next' => 
  array (
    0 => 'function.date-sun-info.php',
    1 => 'date_sun_info',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/datetime/functions/date-sub.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.date-sub" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">date_sub</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">date_sub</span> &mdash; <span class="dc-title">别名 <span class="methodname"><a href="datetime.sub.php" class="methodname">DateTime::sub()</a></span></span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.date-sub-description">
  <h3 class="title">说明</h3>
  <p class="para">
   此函数是该函数的别名： <span class="methodname"><a href="datetime.sub.php" class="methodname">DateTime::sub()</a></span>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.date-sub-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="datetimeimmutable.sub.php" class="function" rel="rdfs-seeAlso">DateTimeImmutable::sub()</a> - Subtracts an amount of days, months, years, hours, minutes and seconds</span></li>
    <li><span class="function"><a href="datetime.sub.php" class="function" rel="rdfs-seeAlso">DateTime::sub()</a> - 对 DateTime 对象减去一定量的日、月、年、小时、分钟和秒。</span></li>
   </ul>
  </p>
 </div>


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