如何获得PHP时间明天下午6点CST?
我需要得到一个时间戳在PHP的第二天下午6点CST如何获得PHP时间明天下午6点CST?,php,time,timestamp,Php,Time,Timestamp,我需要得到一个时间戳在PHP的第二天下午6点CST $tomorrow = mktime(18, 0, 0, date("m"), date("d")+1, date("y")); echo "Tomorrow is ".date("Y-m-d H:m:s ", $tomorrow); 我无法为上述代码设置分钟部分,它总是在分钟部分返回11 Tomorrow is 2009-11-06 18:11:00 以日期格式Y-m-d H:m:s显示月份两次m。使用带前导零的i分钟:Y-m-d H
$tomorrow = mktime(18, 0, 0, date("m"), date("d")+1, date("y"));
echo "Tomorrow is ".date("Y-m-d H:m:s ", $tomorrow);
我无法为上述代码设置分钟部分,它总是在分钟部分返回11
Tomorrow is 2009-11-06 18:11:00
以日期格式
Y-m-d H:m:s
显示月份两次m
。使用带前导零的i
分钟:Y-m-d H:s
()以日期格式Y-m-d H:m:s
显示月份两次m
。使用带前导零的i
分钟:Y-m-d H:i:s
()更简单的版本是使用:
包括更正会议记录(从m到i)。输出:
更简单的版本是使用: 包括更正会议记录(从m到i)。输出:
Apache版本:2.2.11 PHP版本:5.2.11 Apache版本:2.2.11 PHP版本:5.2.11
echo "Tomorrow is ".date("Y-m-d H:i:s ", strtotime("Tomorrow 6pm"));
Tomorrow is 2009-11-06 18:00:00