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/datetime.constants.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 => 'datetime.constants.php',
   
1 => 'Predefined Constants',
  ),
 
'up' =>
  array (
   
0 => 'book.datetime.php',
   
1 => 'Date and Time',
  ),
 
'prev' =>
  array (
   
0 => 'datetime.resources.php',
   
1 => 'Resource Types',
  ),
 
'next' =>
  array (
   
0 => 'timezones.php',
   
1 => 'List of Supported Timezones',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div>
 <h1>Predefined Constants</h1>

 <p class="para">
  The <a href="class.datetime.php#datetime.constants.types" class="link"><i>DATE_</i>
  constants</a> are defined since PHP 5.1.1 and they offer standard
  date representations, which can be used along with the date format functions
  (like <a href="function.date.php" class="function">date()</a>).
 </p>
 <p class="para">
  Following constants exists since PHP 5.1.2 and specify a format returned by
  functions <a href="function.date-sunrise.php" class="function">date_sunrise()</a> and
  <a href="function.date-sunset.php" class="function">date_sunset()</a>.
 </p>
 <dl>

  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">SUNFUNCS_RET_TIMESTAMP</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

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

    <span class="simpara">
     Timestamp
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">SUNFUNCS_RET_STRING</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

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

    <span class="simpara">
     Hours:minutes (example: 08:02)
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">SUNFUNCS_RET_DOUBLE</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

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

    <span class="simpara">
     Hours as floating point number (example 8.75)
    </span>
   </dd>

 
 </dl>

</div>
<?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites