I suspect $duration->days() returns the *portion* of the duration that is measured in days. I think you want $duration->in_units('days').
In reply to Re: A DateTime penance has befallen me
by ikegami
in thread A DateTime penance has befallen me
by jfrm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |