Answers for "php datetime minutes"

PHP
4

how to add hour minute seconds in php datetime

date('Y-m-d H:i',strtotime('+1 hour +20 minutes',strtotime($start)));
Posted by: Guest on August-13-2020
0

php datetime sub minutes

$datetime = new DateTime();

//PT 'TIME' M
//PT30S -> 30 Seconds
//PT30M -> 30 Minutes
//PT30H -> 30 Hours
$datetime->sub(new DateInterval('PT12H30M'));
Posted by: Guest on May-26-2021

Code answers related to "php datetime minutes"

Browse Popular Code Answers by Language