This works in my head: $dt->add( seconds => 30 )->truncate( to => 'minute' );
Cheers! Rick Measham On 01/12/2010, at 10:32 PM, "Jaldhar H. Vyas" <jald...@braincells.com> wrote: > Is there a simple way to do this (i.e. 6:14:56 becomes 6:15:00, 6:14:07 > becomes 6:14::00 etc.) or do I have to roll my own? > > -- > Jaldhar H. Vyas <jald...@braincells.com> > -- > Message protected for iSite by MailGuard: e-mail anti-virus, anti-spam and > content filtering.http://www.mailguard.com.au > Click here to report this message as spam: > https://login.mailguard.com.au/report/1BdnE37tyM/28k4626s5OidVPkt2HIig2/0 > -- Message protected for iSite by MailGuard: e-mail anti-virus, anti-spam and content filtering.http://www.mailguard.com.au