Searched refs:createFromTimestamp (Results 1 – 6 of 6) sorted by relevance
/php-src/ext/date/tests/ |
H A D | createFromTimestamp.phpt | 2 Tests for DateTime[Immutable]::createFromTimestamp 33 var_dump(DateTime::createFromTimestamp($ts)); 40 var_dump(DateTimeImmutable::createFromTimestamp($ts)); 48 var_dump(MyDateTime::createFromTimestamp(0)); 55 var_dump(MyDateTimeImmutable::createFromTimestamp(0)); 62 DateTime::createFromTimestamp(1696883232): object(DateTime)#%d (3) { 126 DateTime::createFromTimestamp(0.123456): object(DateTime)#%d (3) { 158 DateTime::createFromTimestamp(0): object(DateTime)#%d (3) { 174 DateTime::createFromTimestamp(0.0): object(DateTime)#%d (3) { 190 DateTime::createFromTimestamp(-0.0): object(DateTime)#%d (3) { [all …]
|
H A D | createFromTimestamp_32bit.phpt | 2 Tests for DateTime[Immutable]::createFromTimestamp 32bit variant 24 echo 'DateTime::createFromTimestamp(' . var_export($ts, true) . '): '; 26 var_dump(DateTime::createFromTimestamp($ts)); 31 echo 'DateTimeImmutable::createFromTimestamp(' . var_export($ts, true) . '): '; 33 var_dump(DateTimeImmutable::createFromTimestamp($ts)); 41 DateTime::createFromTimestamp(2147483647): object(DateTime)#%d (3) { 49 DateTimeImmutable::createFromTimestamp(2147483647): object(DateTimeImmutable)#%d (3) { 57 DateTime::createFromTimestamp(-2147483647-1): object(DateTime)#%d (3) { 73 DateTime::createFromTimestamp(2147483647.5): object(DateTime)#%d (3) { 89 DateTime::createFromTimestamp(-2147483647.5): object(DateTime)#%d (3) { [all …]
|
H A D | gh14383.phpt | 2 Bug GH-14383 (DateTime::createFromTimestamp overflowed microseconds value) 25 echo DateTime::createFromTimestamp($usec)->format('s.u'), "\n"; 31 echo DateTime::createFromTimestamp(-$usec)->format('s.u'), "\n";
|
/php-src/ext/date/ |
H A D | php_date.stub.php | 371 public static function createFromTimestamp(int|float $timestamp): static {} function in DateTime 482 public static function createFromTimestamp(int|float $timestamp): static {} function in DateTimeImmutable
|
H A D | php_date_arginfo.h | 574 ZEND_METHOD(DateTime, createFromTimestamp); 584 ZEND_METHOD(DateTimeImmutable, createFromTimestamp); 693 …ZEND_ME(DateTime, createFromTimestamp, arginfo_class_DateTime_createFromTimestamp, ZEND_ACC_PUBLIC… 720 …ZEND_ME(DateTimeImmutable, createFromTimestamp, arginfo_class_DateTimeImmutable_createFromTimestam…
|
H A D | php_date.c | 2703 PHP_METHOD(DateTime, createFromTimestamp) in PHP_METHOD() argument 2778 PHP_METHOD(DateTimeImmutable, createFromTimestamp) in PHP_METHOD() argument
|
Completed in 27 milliseconds