我有一列作为closed_date,数据类型是时间戳。我想在 unix 时间戳中添加日期,例如 1556801668。我不知道如何在 Laravel 中做到这一点。
使用phpstrtotime()函数转换时间。
strtotime()
例子
$time = '2019-01-01' $timeStamp = strtotime($time); // will output 1546300800
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
点击生成二维码
我来说两句