$t=1681749996;
$u=date("w",$t);
$v=str_replace(array("0","1","2","3","4","5","6"),array("日","一","二","三","四","五","六"),$u);
echo($t . "<br>");
echo(date("Y-m-d H:i:s",$t). "<br>");
echo("星期".$v);
——————————————————分隔线————————————————————运行结果:
1681749996
2023-04-18 00:46:36
星期二