Sophie

Sophie

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

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>Gets the number of seconds since the epoch that this id was created</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongoid.getpid.html">MongoId::getPID</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongoid.set-state.html">MongoId::__set_state</a></div>
 <div class="up"><a href="class.mongoid.html">MongoId</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mongoid.gettimestamp" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoId::getTimestamp</h1>
  <p class="verinfo">(PECL mongo &gt;= 1.0.1)</p><p class="refpurpose"><span class="refname">MongoId::getTimestamp</span> &mdash; <span class="dc-title">Gets the number of seconds since the epoch that this id was created</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongoid.gettimestamp-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><strong>MongoId::getTimestamp</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">
   This returns the same thing as running  <span class="function"><a href="function.time.html" class="function">time()</a></span> when the id is created.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-mongoid.gettimestamp-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">This function has no parameters.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongoid.gettimestamp-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns the number of seconds since the epoch that this id was created.  There are only 
   four bytes of timestamp stored, so <a href="class.mongodate.html" class="classname">MongoDate</a> is a better choice 
   for storing exact or wide-ranging times.
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongoid.getpid.html">MongoId::getPID</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongoid.set-state.html">MongoId::__set_state</a></div>
 <div class="up"><a href="class.mongoid.html">MongoId</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>