strtotime 很是強大的一個獲取時間戳的函數php
php獲取一個月前的時間戳:函數
strtotime("-0 year -1 month -0 day");
php獲取三個月前的時間戳:spa
strtotime("-0 year -3 month -0 day");
php獲取六個月前的時間戳:code
strtotime("-0 year -6 month -0 day");
php獲取一年前的時間戳:blog
strtotime("-1 year -0 month -0 day");