/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
date
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/date/tests/bug62561.phpt
--TEST-- Bug #62561 Unixtimestamp may take on local times DST flag (this test will only be valid during EDT) --FILE-- <?php $tz = new DateTimeZone('America/New_York'); $ts = new DateTime('@1341115200', $tz); $int = new DateInterval('P1D'); $dayFromTs = new DateTime('@1341115200', new DateTimeZone('America/New_York')); $dayFromTs->add($int); echo 'ts: '.$ts->format('Y-m-d H:i:s')."\n"; echo 'day from ts: '.$dayFromTs->format('Y-m-d H:i:s')."\n"; ?> --EXPECT-- ts: 2012-07-01 04:00:00 day from ts: 2012-07-02 04:00:00
Copyright ©2k19 -
Hexid
|
Tex7ure