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()
timestamp conversion date, input time to time stamp, or input timestamp into time.