downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/class.dateperiod.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/book.datetime.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'class.dateperiod.php',
   
1 => 'DatePeriod',
  ),
 
'up' =>
  array (
   
0 => 'book.datetime.php',
   
1 => 'Date and Time',
  ),
 
'prev' =>
  array (
   
0 => 'dateinterval.format.php',
   
1 => 'DateInterval::format',
  ),
 
'next' =>
  array (
   
0 => 'dateperiod.construct.php',
   
1 => 'DatePeriod::__construct',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div>

 <h1 class="title">The DatePeriod class</h1>
 

 <div class="partintro">


  <div id="dateperiod.intro" class="section">
   <h2 class="title">Introduction</h2>
   <p class="para">
    Representation of date period.
   </p>
  </div>


  <div id="dateperiod.synopsis" class="section">
   <h2 class="title">Class synopsis</h2>


   <div class="classsynopsis">
    <div class="ooclass"><b class="classname">DatePeriod</b></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <b class="classname">DatePeriod</b>
     </span>
    
     <span class="oointerface">implements
      <a href="class.traversable.php" class="interfacename">Traversable</a>
     </span>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Constants */</div>
    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.dateperiod.php#dateperiod.constants.exclude-start-date">DatePeriod::EXCLUDE_START_DATE</a></var>
     <span class="initializer"> = 1</span>
    ;</div>

   
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div>
    <div class="methodsynopsis dc-description">
    <span class="methodname"><a href="dateperiod.construct.php" class="function">__construct</a></span>
    ( <span class="methodparam"><span class="type"><a href="class.datetime.php" class="type DateTime">DateTime</a></span> <tt class="parameter">$start</tt></span>
   , <span class="methodparam"><span class="type"><a href="class.dateinterval.php" class="type DateInterval">DateInterval</a></span> <tt class="parameter">$interval</tt></span>
   , <span class="methodparam"><span class="type">int</span> <tt class="parameter">$recurrences</tt></span>
   [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$options</tt></span>
  ] )</div>

   }</div>


  </div>
 

  <div id="dateperiod.constants" class="section">
   <h2 class="title">Predefined Constants</h2>
   <div id="dateperiod.constants.types" class="section">
    <h2 class="title">DatePeriod Node Types</h2>
    <dl>


     <dt id="dateperiod.constants.exclude-start-date" class="varlistentry">
      <span class="term"><b><tt class="constant">DatePeriod::EXCLUDE_START_DATE</tt></b></span>

      </dt><dd class="listitem">

       <p class="para">Exclude start date, used in <a href="dateperiod.construct.php" class="function">DatePeriod::__construct()</a>.</p>
      </dd>

    

    </dl>

   </div>
  </div>



 </div>

 








<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="dateperiod.construct.php">DatePeriod::__construct</a> — Creates new DatePeriod object</li></ul>
</div>
<?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites