pcouderc has asked for the wisdom of the Perl Monks concerning the following question:
or :my $dt=$datec->subtract_datetime( $dateref )->delta_days();
but when more that 1 montth, $dt remains less than 30.my $dt=$datec->clone->subtract_datetime( $dateref ); $dt=$dt->in_units('days');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to find the number of days with DateTime ?
by choroba (Cardinal) on Jan 03, 2014 at 11:05 UTC | |
by pcouderc (Monk) on Jan 03, 2014 at 11:12 UTC | |
by Anonymous Monk on Jan 03, 2014 at 14:18 UTC | |
by Anonymous Monk on Jan 03, 2014 at 14:34 UTC | |
|
Re: How to find the number of days with DateTime ?
by Jim (Curate) on Jan 03, 2014 at 21:07 UTC | |
|
Re: How to find the number of days with DateTime ?
by vagabonding electron (Curate) on Jan 04, 2014 at 14:37 UTC | |
by pcouderc (Monk) on Jul 23, 2014 at 10:02 UTC |