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()
時間戳轉換日期,輸入時間轉時間戳、或輸入時間戳轉成時間!