<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">FYI, Denver folk.  :)<div><br><div><br><div>Begin forwarded message:</div><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>From: </b></span><span style="font-family:'Helvetica';">Sterling Hanenkamp <<a href="mailto:sterling@hanenkamp.com">sterling@hanenkamp.com</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>Subject: </b></span><span style="font-family:'Helvetica';"><b>Re: [Omaha.pm] Simplifying Time?</b><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>Date: </b></span><span style="font-family:'Helvetica';">March 20, 2014 at 12:52:57 PM CDT<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>To: </b></span><span style="font-family:'Helvetica';">"Perl Mongers of Omaha, Nebraska USA" <<a href="mailto:omaha-pm@pm.org">omaha-pm@pm.org</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>Reply-To: </b></span><span style="font-family:'Helvetica';">"Perl Mongers of Omaha, Nebraska USA" <<a href="mailto:omaha-pm@pm.org">omaha-pm@pm.org</a>><br></span></div><br><div><div dir="ltr">If you use DateTime instead of Class::Date, there's the DateTime::Duration class which will let you add durations:<div><br></div><div>my $duration = DateTime::Duration->new( seconds => 15 );</div><div>
$duration->add( seconds => 73 );</div><div>$duration->add( weeks => 12 );</div><div><br></div><div>There are some modules to help with formatting durations too. I think the nicest of which is this one:</div><div>
<br></div><div><a href="https://metacpan.org/pod/DateTime::Format::Human::Duration">https://metacpan.org/pod/DateTime::Format::Human::Duration</a></div><div><br></div><div>It's a pretty nice module.</div></div><div class="gmail_extra">
<br>-- <br>Andrew Sterling Hanenkamp<br><a href="mailto:sterling@hanenkamp.com">sterling@hanenkamp.com</a><br>785.370.4454
</div></div></blockquote></div><br></div></body></html>