Last active
December 19, 2015 09:19
-
-
Save eddy8/5932626 to your computer and use it in GitHub Desktop.
获取一周前的时间
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function a_week_ago(){ | |
$today = getdate(); | |
$start_time = mktime(0,0,0,$today['mon'],$today['mday']-7,$today['year']); | |
$end_time = time(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment