Answers for "php carbon convert date time to seconds"

PHP
0

php carbon from timestamp

Carbon::createFromTimestamp(1616013398)
Posted by: Guest on March-17-2021
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

Code answers related to "php carbon convert date time to seconds"

Browse Popular Code Answers by Language