看下写的正确么?
来源:3-12 编程练习
慕婉清2128704
2019-12-31 15:34:31
date_default_timezone_set('Asia/Shanghai');
echo "timestamp now:".strtotime ( "now" ), "<br>" ;
//补全 其他 代码
echo "timestamp of 10 September 2000:".strtotime ( "10 September 2000" ), "<br>" ;
echo "timestamp of next day:",strtotime('+1 day'), "<br>" ;
echo "timestamp of next week:",strtotime('+1 week'), "<br>" ;
echo "timestamp of next week 2 days 4 hours 2 seconds:",strtotime('+1 week 2 days 4 hours 2 seconds'), "<br>" ;
echo "timestamp of next Thursday:",strtotime('next Thursday'), "<br>" ;
echo "timestamp of next Thursday:",strtotime('last Monday'), "<br>" ;
1回答
你好,代码逻辑以及运行结果是正确的,祝学习愉快!
相似问题