查询前一年时间戳


mktime(0,0,0,date('m'),date('d'),date('Y')-1);
strtotime('-12 month');

查询前6个月时间戳


mktime(0,0,0,date('m')-6,date('d'),date('Y'));
strtotime('-6 month');

 格式化时间时间戳


date('Y-m-d H:i:s',time());