当前位置:Gxlcms > PHP教程 > 中文时间显示的程序_PHP

中文时间显示的程序_PHP

时间:2021-07-01 10:21:17 帮助过:26人阅读

$cweekday = array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
$now = getdate(time());
$cur_wday=$now['wday'];
$showtime = date("北京时间Y年m月d日H时i分s秒 $cweekday[$cur_wday]");
echo $showtime;
?>

人气教程排行