标签:php
获取前一天的时间:
$mytime= date("Y-m-d H:i:s", strtotime("-1 day"));$mytime= date("Y-m-d H:i:s", strtotime("-3 day"));$mytime= date("Y-m-d H:i:s", strtotime("-1 month"));$mytime= date("Y-m-d H:i:s", strtotime("-3 month"));$mytime= date("Y-m-d H:i:s", strtotime("-1 hour"));$mytime= date("Y-m-d H:i:s", strtotime("-1 year"));
标签:php
原文地址:http://blog.csdn.net/liujan511536/article/details/46404603