📜  以月为单位获取年龄 php 代码示例

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

代码示例1
$interval = date_diff(date_create(), date_create('2008-01-01 10:30:00'));
echo $interval->format("You are  %Y Year, %M Months, %d Days, %H Hours, %i Minutes, %s Seconds Old");