|
<html>
<head>
<title>中文时间显示例子</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>你登录本站的时间:<p>
<?php
$cweekday = array ("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
$now = getdate (time());
$cur_wday=$now['wday'];
$showtime = date("北京时间Y年m月d日H时i分s秒 $cweekday[$cur_wday]");
echo $showtime;
?>
</body>
</html> |
|