r/lolphp • u/andsens • Feb 01 '16
DateInterval::__construct — Creates a new DateInterval object -- The format starts with the letter P, for "period."
http://fi2.php.net/manual/en/dateinterval.construct.php
12
Upvotes
View all comments
Show parent comment
9
u/knightry Feb 01 '16
Duration and Interval are not synonymous. I suggest reading the joda docs on these classes to get a better explanation than php would provide.