摘要: 1.以下函数都可以直接使用。function getReportDates($periods){ $dates = array(); //当前时间周期的起止时间 $end = getWeekendByDate($periods); $start = date("Y-m-d",... 阅读全文
posted @ 2014-12-06 15:37 KOBE-Jason 阅读(293) 评论(0) 推荐(0)
摘要: 1.当前时间,往后退5天:date('Y-m-d H:i:s',strtotime('-1 days'));2.有固定时间,往后面退一天或者七天,或者30天:比如时间:$time =2014-12-05 14:48:59往后推一天:$time_sp=strtotime($time); //转化为时间... 阅读全文
posted @ 2014-12-06 14:57 KOBE-Jason 阅读(1624) 评论(0) 推荐(0)