Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php datetime sub minutes

$datetime = new DateTime();

//PT 'TIME' M
//PT30S -> 30 Seconds
//PT30M -> 30 Minutes
//PT30H -> 30 Hours
$datetime->sub(new DateInterval('PT12H30M'));
 
PREVIOUS NEXT
Tagged: #php #datetime #minutes
ADD COMMENT
Topic
Name
8+3 =