Answers for "carbon seconds to minutes"

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

Browse Popular Code Answers by Language