Re: Seconds left in day + DST

[email protected] (Rick Measham)
Newsgroups perl.datetime
Message-ID <[email protected]>
P DD wrote:
> my $tom = ($now + DateTime::Duration->new(days => 1))->truncate(to =>
> 'day');

Can I suggest this for neater code:
my $tom = $dt->clone->add( days => 1 )->truncate( to => 'day' );

Cheers!
Rick Measham
-- 
Message  protected for iSite by MailGuard: e-mail anti-virus, anti-spam and content filtering.
http://www.mailguard.com.au
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.