我有一列为 close_date,数据类型为时间戳。我想在 unix 时间戳中添加日期,例如 1556801668。我不知道如何在 Laravel 中做到这一点。
使用phpstrtotime()
函数转换时间。
例子
$time = '2019-01-01'
$timeStamp = strtotime($time);
// will output 1546300800
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
8162 次 |
最近记录: |