📜  laravel 当前时间和创建时间的区别 - PHP 代码示例

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

代码示例1
#1 -> 10 minutes after
$lifeSpan = $now->diffForHumans($token->created_at);
#2 -> "00:10:30 Minutes"
$lifeSpan = $now->diff($token->updated_at)->format('%H:%I:%S')." Minutes";