[OPEN-ILS-DEV] DateTime::Format::Duration

Galen Charlton gmc at esilibrary.com
Fri Jun 5 15:29:41 EDT 2015


Hi,

On Fri, Jun 5, 2015 at 3:02 PM, Victoria Lewis
<vLewis at catalystitservices.com> wrote:
> I want to find the difference in days between two dates.
[snip]
> my $duration = $date->delta_days($last_date_entered);

If you just need the value, you can use $duration->in_units('days').

Regards,

Galen
-- 
Galen Charlton
Infrastructure and Added Services Manager
Equinox Software, Inc. / The Open Source Experts
email:  gmc at esilibrary.com
direct: +1 770-709-5581
cell:   +1 404-984-4366
skype:  gmcharlt
web:    http://www.esilibrary.com/
Supporting Koha and Evergreen: http://koha-community.org &
http://evergreen-ils.org


More information about the Open-ils-dev mailing list