<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.datetime.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'datetime.settimestamp.php',
    1 => 'DateTime::setTimestamp',
    2 => 'Legt Datum und Zeit basierend auf einem Unix-Zeitstempel fest',
  ),
  'up' => 
  array (
    0 => 'class.datetime.php',
    1 => 'DateTime',
  ),
  'prev' => 
  array (
    0 => 'datetime.settime.php',
    1 => 'DateTime::setTime',
  ),
  'next' => 
  array (
    0 => 'datetime.settimezone.php',
    1 => 'DateTime::setTimezone',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/datetime/datetime/settimestamp.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="datetime.settimestamp" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">DateTime::setTimestamp</h1>
  <h1 class="refname">date_timestamp_set</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">DateTime::setTimestamp</span> -- <span class="refname">date_timestamp_set</span> &mdash; <span class="dc-title">Legt Datum und Zeit basierend auf einem Unix-Zeitstempel fest</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-datetime.settimestamp-description">
  <h3 class="title">Beschreibung</h3>
  <p class="para">Objektorientierter Stil</p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>DateTime::setTimestamp</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$timestamp</code></span>): <span class="type"><a href="class.datetime.php" class="type DateTime">DateTime</a></span></div>

  <p class="para rdfs-comment">Prozeduraler Stil</p>
  <div class="methodsynopsis dc-description"><span class="methodname"><a href="function.date-timestamp-set.php" class="methodname">date_timestamp_set</a></span>(<span class="methodparam"><span class="type"><a href="class.datetime.php" class="type DateTime">DateTime</a></span> <code class="parameter">$object</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$timestamp</code></span>): <span class="type"><a href="class.datetime.php" class="type DateTime">DateTime</a></span></div>

  <p class="para rdfs-comment">
   Legt Datum und Zeit basierend auf einem Unix-Zeitstempel fest.
  </p>
  <p class="para">
   Wie <span class="methodname"><a href="datetimeimmutable.settimestamp.php" class="methodname">DateTimeImmutable::setTimestamp()</a></span>, verwendet aber
   <span class="classname"><a href="class.datetime.php" class="classname">DateTime</a></span>.
  </p>
  <p class="para">
   Die prozedurale Version verwendet das
   <span class="classname"><a href="class.datetime.php" class="classname">DateTime</a></span>-Objekt als ersten Parameter.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-datetime.settimestamp-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <dl>
   <dt><code class="parameter">object</code></dt>
<dd><p class="para">Nur bei prozeduralem Aufruf: Ein von
<span class="function"><a href="function.date-create.php" class="function">date_create()</a></span> zurückgegebenes
<span class="classname"><a href="class.datetime.php" class="classname">DateTime</a></span>-Objekt.
Diese Funktion verändert dieses Objekt.</p></dd>
   
    <dt><code class="parameter">timestamp</code></dt>
    <dd>
     <p class="para">
      Ein Unix-Zeitstempel, der das Datum angibt.
      Es ist möglich, Zeitstempel außerhalb des Bereichs von <a href="language.types.integer.php" class="link">Integer</a> zu
      setzen, indem man <span class="methodname"><a href="datetimeimmutable.modify.php" class="methodname">DateTimeImmutable::modify()</a></span> mit
      dem <code class="literal">@</code>-Format verwendet.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-datetime.settimestamp-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Gibt das geänderte <span class="classname"><a href="class.datetime.php" class="classname">DateTime</a></span>-Objekt für die Methodenverkettung zurück.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-datetime.settimestamp-seealso">
  <h3 class="title">Siehe auch</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="datetimeimmutable.settimestamp.php" class="function" rel="rdfs-seeAlso">DateTimeImmutable::setTimestamp()</a> - Legt das Datum und die Uhrzeit basierend auf einem Unix-Zeitstempel fest</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>