prakash2raj
2 weeks ago
182
5
Laravel

Calculate difference between 2 different timestamps in LARAVEL

Posted 2 weeks ago by prakash2raj

I want to calculate the difference between 2 timestamps in Laravel..Any Idea, please!!

Ex. $start_time = 10:15 AM and $end_time = 11:35 PM

$start_time - $end_time

I want output as 1h 20m

Please sign in or create an account to participate in this conversation.