echo date('Y-m-d H:i:s', time()); //输出为:2022-05-31 18:45:30 echo gmdate('Y-m-d H:i:s', time()); //输出为:2022-05-31 10:45:30 echo gmdate('Y-m-d H:i:s', time() + 3600*8);//时区+8,输出为:2022-05-31 18:45:30
echo date('Y-m-d H:i:s', time()); //输出为:2022-05-31 18:45:30 echo gmdate('Y-m-d H:i:s', time()); //输出为:2022-05-31 10:45:30 echo gmdate('Y-m-d H:i:s', time() + 3600*8);//时区+8,输出为:2022-05-31 18:45:30