bug33415-1.phpt

来自「PHP v6.0 For Linux 运行环境:Win9X/ WinME/ Wi」· PHPT 代码 · 共 34 行

PHPT
34
字号
--TEST--Bug #33415 [1] (Possibly invalid non-one-hour DST or timezone shifts)--FILE--<?phpprint "TZ=America/Jujuy  - Is it OK for this to be 2 AM, rather than 1AM as per most DST transitions?\n";putenv("TZ=America/Jujuy");$tStamp = mktime (17, 17, 17, 1, 7593, 1970);print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";$strtotime_tstamp = strtotime("next Monday", $tStamp);print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";print "wanted=Monday            00:00:00\n\n";print "TZ=Asia/Tbilisi - Is it OK for this to be 2 AM?\n";putenv("TZ=Asia/Tbilisi");$tStamp = mktime (17, 17, 17, 1, 12863, 1970);print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";$strtotime_tstamp = strtotime("next Sunday", $tStamp);print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";print "wanted=Sunday            00:00:00\n\n";?>--EXPECT--TZ=America/Jujuy  - Is it OK for this to be 2 AM, rather than 1AM as per most DST transitions?tStamp=Monday 1990-10-15 17:17:17 WART 0result=Monday 1990-10-22 00:00:00 WART 0wanted=Monday            00:00:00TZ=Asia/Tbilisi - Is it OK for this to be 2 AM?tStamp=Sunday 2005-03-20 17:17:17 GET 0result=Sunday 2005-03-27 00:00:00 GET 0wanted=Sunday            00:00:00

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?