Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

diff for seconds laravel carbon

    echo $tz = Carbon::now('Australia/Perth');
    $local='2017-04-11 12:39:50';
    echo $emitted = Carbon::parse($local);
    echo $diff = $tz->diffInSeconds($emitted); 
  
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #diff #seconds #laravel #carbon
ADD COMMENT
Topic
Name
1+1 =