Answers for "time to seconds convert carbon"

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 "time to seconds convert carbon"

Browse Popular Code Answers by Language