Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Average start time handling midnightby gandolf989 (Scribe) |
on Jul 21, 2016 at 19:08 UTC ( [id://1168265]=note: print w/replies, xml ) | Need Help?? |
There are date functions that will just give you the elapsed time. They should even be able to account for different timezones.
http://search.cpan.org/~drolsky/DateTime1.34/lib/DateTime.pm#Datetime_Subtraction
Another option is to convert the dates to unix time and subtract, then figure out how many hours, minutes and seconds elapsed. This is a great place to just use a library rather than build something new.
In Section
Seekers of Perl Wisdom
|
|