Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

add seconds to datetime carbon

Try to parse() it first:
$date = Carbon::parse($dateTime)
            ->addSeconds($seconds)
            ->format('Y-m-d H:i:s');
 
PREVIOUS NEXT
Tagged: #add #seconds #datetime #carbon
ADD COMMENT
Topic
Name
7+5 =