diff for seconds laravel carbon

Solutions on MaxInterview for diff for seconds laravel carbon by the best coders in the world

showing results for - "diff for seconds laravel carbon"
Lilwenn
10 Mar 2020
1    echo $tz = Carbon::now('Australia/Perth');
2    $local='2017-04-11 12:39:50';
3    echo $emitted = Carbon::parse($local);
4    echo $diff = $tz->diffInSeconds($emitted); 
5  
6