<!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>Gets the timestamp of the first sample from rrd file.</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.rrd-fetch.html">rrd_fetch</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.rrd-graph.html">rrd_graph</a></div> <div class="up"><a href="ref.rrd.html">RRD Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.rrd-first" class="refentry"> <div class="refnamediv"> <h1 class="refname">rrd_first</h1> <p class="verinfo">(PECL rrd >= 0.9.0)</p><p class="refpurpose"><span class="refname">rrd_first</span> — <span class="dc-title">Gets the timestamp of the first sample from rrd file.</span></p> </div> <div class="refsect1 description" id="refsect1-function.rrd-first-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">int</span> <span class="methodname"><strong>rrd_first</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$file</code></span> [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$raaindex</code><span class="initializer"> = 0</span></span> ] )</div> <p class="para rdfs-comment"> Returns the first data sample from the specified RRA of the RRD file. </p> </div> <div class="refsect1 parameters" id="refsect1-function.rrd-first-parameters"> <h3 class="title">Parameters</h3> <dl> <dt> <span class="term"><em><code class="parameter">file</code></em></span> <dd> <p class="para"> RRD database file name. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">raaindex</code></em></span> <dd> <p class="para"> The index number of the RRA that is to be examined. Default value is 0. </p> </dd> </dt> </dl> </div> <div class="refsect1 returnvalues" id="refsect1-function.rrd-first-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Integer number of unix timestamp, <strong><code>FALSE</code></strong> if some error occurs. </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.rrd-fetch.html">rrd_fetch</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.rrd-graph.html">rrd_graph</a></div> <div class="up"><a href="ref.rrd.html">RRD Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>