📜  diff 秒 laravel carbon - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:27.135000             🧑  作者: Mango

代码示例1
echo $tz = Carbon::now('Australia/Perth');
    $local='2017-04-11 12:39:50';
    echo $emitted = Carbon::parse($local);
    echo $diff = $tz->diffInSeconds($emitted);