I think that your $delta, since it's a duration object, needs to be dereferenced into seconds to make this work.
my $days = int($delta->seconds / 86400);Right?
In reply to Re^2: DateTime usage for duration computation
by varanasi
in thread DateTime usage for duration computation
by Marsel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |