今天:: $start_time = mktime(0,0,0,date(‘m‘),date(‘d‘),date(‘Y‘)); $end_time = mktime(0,0,0,date(‘m‘),date(‘d‘)+1,date(‘Y‘))-1; 明天: $start_time = mktime(0,0,0,date(‘m‘),date(‘d‘),date(‘Y‘))+86400; $end_time = mktime(0,0,0,date(‘m‘),date(‘d‘)+1,date(‘Y‘))-1+86400; 本周: $start_time = mktime(0,0,0,date(‘m‘),date(‘d‘)-date(‘w‘)+1,date(‘Y‘)); $end_time = mktime(23,59,59,date(‘m‘),date(‘d‘)-date(‘w‘)+7,date(‘Y‘)); 本周末: $start_time = mktime(0,0,0,date(‘m‘),date(‘d‘)-date(‘w‘)+6,date(‘Y‘)); $end_time = mktime(23,59,59,date(‘m‘),date(‘d‘)-date(‘w‘)+7,date(‘Y‘)); 本月: $start_time = mktime(0,0,0,date(‘m‘),1,date(‘Y‘)); $end_time = mktime(23,59,59,date(‘m‘),date(‘t‘),date(‘Y‘));
时间: 2024-10-05 17:06:38