php獲取一個月前的時間戳,獲取三個月前的時間戳,獲取一年前的時間戳


strtotime 非常強大的一個獲取時間戳的函數

php獲取一個月前的時間戳:

strtotime("-0 year -1 month -0 day");

php獲取三個月前的時間戳:

strtotime("-0 year -3 month -0 day");

php獲取六個月前的時間戳:

strtotime("-0 year -6 month -0 day");

php獲取一年前的時間戳:

strtotime("-1 year -0 month -0 day");

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM