On Thu, 2 Dec 2010, Rick Measham wrote:

This works in my head:

$dt->add( seconds => 30 )->truncate( to => 'minute' );


Wonderful! One thing I found out about my data after I wrote is that I need to round down if seconds = 30 exactly. So I just changed your code to add 29 seconds and now it works perfectly.

Thanks for your help.


--
Jaldhar H. Vyas <jald...@braincells.com>

Reply via email to