Do you have questions ? We got the answers!

0
Finding difference in PHP timestamp?

Open 0 Answers 19 Views PHP

I have a timestamp like this, I'm trying to calculate how long between created_at and closed_at, so how long the session lasted.

{{ Carbon\Carbon::parse($clientLogin->closed_at - $clientLogin->created_at)->diffForHumans() }}

Although it wont let me compare it?

Your answer

Format: new
Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

0 Answers