看板 [ PHP ]
討論串[心得] 時間間隔
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 1→)留言1則,0人參與, 最新作者hellolucky (做自己 好自在)時間15年前 (2010/02/24 11:02), 編輯資訊
0
0
2
內容預覽:
如果要用date(). $nex_tweek = date("Y-m-d", mktime(0,0,0,date("m"),date("d")+7,date("Y"))). $next_month = date("Y-m-d", mktime(0,0,0,date("m")+1,date("d"),
(還有51個字)

推噓0(0推 0噓 1→)留言1則,0人參與, 最新作者appleboy46 (小惡魔)時間15年前 (2010/02/24 09:59), 編輯資訊
0
0
5
內容預覽:
http://tw2.php.net/manual/en/function.strtotime.php. 下個禮拜:. echo strtotime("+1 week") . "<br />";. 下個月:. echo strtotime("+1 month") . "<br />";. 接下來算天
(還有147個字)

推噓0(0推 0噓 8→)留言8則,0人參與, 最新作者taipingeric (一隻羊)時間15年前 (2010/02/23 21:55), 編輯資訊
0
0
0
內容預覽:
請問一下如果要判斷我指定的日期距離現在要"大於一星期"且"小於一個月". EX:現在是2/23禮拜三 就是下禮拜三 ~ 3/23的間隔. time()好像只能回傳現在秒數. 是不是要用date()相關函數做判斷還是有另解? 感謝. 剛剛突然找到用mktime()相減的秒數/86400 求天數@@"
首頁
上一頁
1
下一頁
尾頁