jagdish eashwar wrote:
>$dur = $date1->delta_days($date2);

This is correct as far as it goes.

>print $dur->days,"\n";
># This gives me --------- "4"

Here the duration is being expressed in weeks plus days, and you're
only looking at the days portion.  $dur->weeks returns 4; the duration
is 4 weeks plus 4 days.  To get the duration expressed purely in days,
do $dur->in_units("days").

-zefram

Reply via email to