可能重复: 如何计算年,月,日的年龄?
我想计算出生日期的人的年龄和相对于当前日期的年,月和日的当前日期.
例如:
>>> calculate_age(2008, 01, 01) 1 years, 0 months, 16 days
php
php ×1