Answers for "laravel carbon convert into seconds"

PHP
1

add seconds to datetime carbon

Try to parse() it first:
$date = Carbon::parse($dateTime)
            ->addSeconds($seconds)
            ->format('Y-m-d H:i:s');
Posted by: Guest on July-06-2020
0

Convert Carbon Seconds Into Days Hours Minute

CarbonInterval::seconds(90060)->cascade()->forHumans();
Posted by: Guest on August-21-2021

Code answers related to "laravel carbon convert into seconds"

Browse Popular Code Answers by Language