一:获取上个小时

方法1:date("H",strtotime("-1 hours");

方法2:date('H',time()-60*60);

方法3:echo substr('0'.(--date('H') & 23),-2);

 

相关文章: