Answers for "how to add the hours and minuetus in php"

PHP
0

add hour minute in datetime in php

$minutes_to_add = 5;

$time = new DateTime('2011-11-17 05:05');
$time->add(new DateInterval('PT' . $minutes_to_add . 'M'));

$stamp = $time->format('Y-m-d H:i');
Posted by: Guest on August-13-2020

Code answers related to "how to add the hours and minuetus in php"

Browse Popular Code Answers by Language