php strtotime 用法只細節

最近寫代碼是發現一個bug  。數據庫 通常爲了方便查詢 ,把數據庫時間保存成時間戳,數據庫中用int類型,有時候還加上unsigned限制,若是時間是1970 00:00:00 以前,並且還使用strtotime 轉化,spa 會出現bug.bug 例如:im $time='1967-09-10';//在1970 00:00:00以前 時間戳 $time=strtotime($time);數據
相關文章
相關標籤/搜索