Home
last modified time | relevance | path

Searched refs:setTimestamp (Results 1 – 15 of 15) sorted by relevance

/php-src/ext/date/tests/
H A Dgh9891.phpt2 Bug GH-9891 (DateTime modify with unixtimestamp (@) must work like setTimestamp)
16 echo '$b: setTimestamp(', $b->getTimestamp(), ")\n";
18 $b->setTimestamp($b->getTimestamp());
28 $b: setTimestamp(1667327400)
H A Ddate-set-timestamp.phpt2 DateTime::setTimestamp()
10 $d->setTimestamp( 1217184864 );
H A Dgh9880.phpt9 $nowTime->setTimestamp(1667416695);
12 $dateTime->setTimestamp(1671904800);
H A Dbug52062.phpt2 Bug #52062 (large timestamps with DateTime::getTimestamp and DateTime::setTimestamp) (32 bit)
21 $d->setTimestamp(100000000000);
39 TypeError: DateTime::setTimestamp(): Argument #1 ($timestamp) must be of type int, float given
H A Dbug66545.phpt13 $d1->setTimestamp($debut);
14 $d2->setTimestamp($fin);
H A Dbug52062-64bit.phpt2 Bug #52062 (large timestamps with DateTime::getTimestamp and DateTime::setTimestamp) (64 bit)
15 $d->setTimestamp(100000000000);
H A Dbug73858.phpt18 $s = (new DateTime("now"))->setTimestamp(strtotime($ss)); // verbose setup method
19 $e = (new DateTime("now"))->setTimestamp(strtotime($es)); // verbose setup method
27 $s = (new DateTime("now"))->setTimestamp(strtotime($ss)); // verbose setup method
33 $e = (new DateTime("now"))->setTimestamp(strtotime($es)); // verbose setup method
42 $e = (new DateTime("now"))->setTimestamp(strtotime($es)); // verbose setup method
H A Dbug60236.phpt10 $t->setTimestamp($ts);
H A Ddate_time_immutable.phpt94 $x = $z->setTimestamp(2012234222);
98 $x = $z->setTimestamp(2012234222);
161 setTimestamp():
H A DDateTimeImmutable_uninitialised_exceptions.phpt44 check(fn() => $mdti->setTimestamp(time()));
H A DDateTime_uninitialised_exceptions.phpt50 check(fn() => $mdt->setTimestamp(time()));
H A Dbug68549-dst-transition-DateTime-setTimestamp.phpt135 $dt->setTimestamp($timestamp);
/php-src/ext/date/
H A Dphp_date.stub.php444 public function setTimestamp(int $timestamp): DateTime {} function in DateTime
548 public function setTimestamp(int $timestamp): DateTimeImmutable {} function in DateTimeImmutable
H A Dphp_date_arginfo.h592 ZEND_METHOD(DateTimeImmutable, setTimestamp);
735 …ZEND_ME(DateTimeImmutable, setTimestamp, arginfo_class_DateTimeImmutable_setTimestamp, ZEND_ACC_PU…
H A Dphp_date.c3826 PHP_METHOD(DateTimeImmutable, setTimestamp) in PHP_METHOD() argument

Completed in 35 milliseconds