Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 1293

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Predefined Constants</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="datetime.resources.html">Resource Types</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.datetime.html">DateTime</a></div>
 <div class="up"><a href="book.datetime.html">Date/Time</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="datetime.constants" class="appendix">
 <h1>Predefined Constants</h1>

 <p class="para">
  The <a href="class.datetime.html#datetime.constants.types" class="link"><em>DATE_</em>
  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  <span class="function"><a href="function.date.html" class="function">date()</a></span>).
 </p>
 <p class="para">
  Following constants exists since PHP 5.1.2 and specify a format returned by
  functions  <span class="function"><a href="function.date-sunrise.html" class="function">date_sunrise()</a></span> and
   <span class="function"><a href="function.date-sunset.html" class="function">date_sunset()</a></span>.
 </p>
 <dl>

  <dt id="constant.sunfuncs-ret-timestamp">
   <span class="term">
    <strong><code>SUNFUNCS_RET_TIMESTAMP</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </span>
   <dd>

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

  </dt>

  <dt id="constant.sunfuncs-ret-string">
   <span class="term">
    <strong><code>SUNFUNCS_RET_STRING</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </span>
   <dd>

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

  </dt>

  <dt id="constant.sunfuncs-ret-double">
   <span class="term">
    <strong><code>SUNFUNCS_RET_DOUBLE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </span>
   <dd>

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

  </dt>

 </dl>

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="datetime.resources.html">Resource Types</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.datetime.html">DateTime</a></div>
 <div class="up"><a href="book.datetime.html">Date/Time</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>