select *from `date` where DATEDIFF(FROM_UNIXTIME(unix_timestamp),NOW())=0 查詢當前時間數據 unix_timestamp是時間戳 0是當天 -1是前一天
echo time();//秒時間戳
(int) (System.currentTimeMillis() / 1000)
Math.round(new Date() / 1000)
date +%s
SELECT strftime('%s', 'now')
import time time.time()
時間戳轉換日期,輸入時間轉時間戳、或輸入時間戳轉成時間!