PHP DateInterval spec

It was a bit of a trick to find the DateInterval spec hidden away in the constructor doco, not the DateInterval class doco.


interval_spec Period Designators
Designator Description
Y years
M months
D days
W weeks
H hours
M minutes
S seconds

Leave a Reply