📜  php datetime sub minutes - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:59.145000             🧑  作者: Mango

代码示例1
$datetime = new DateTime();

//PT 'TIME' M
//PT30S -> 30 Seconds
//PT30M -> 30 Minutes
//PT30H -> 30 Hours
$datetime->sub(new DateInterval('PT12H30M'));