Answers for "php datetime sub minutes"

PHP
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 sub minutes"

Browse Popular Code Answers by Language