laravel中處理時間,把時間拆分紅天、小時(注:小時展現時要/24)

$day_diff = DB::raw(「timestampdiff(day, now(), completed_at) as diff_day」);html $hour_diff = DB::raw(「timestampdiff(hour, now(), completed_at) as diff_hour」);web q u e r y = D e m a n d : : f i r s t
相關文章
相關標籤/搜索