I apologize, I initially made an oversight in my reply to your previous question. $now->add( years=>1 ) actually modifies the $now object and returns the same object. Use $now->clone->add(...) to get a modified copy of $now instead.
Edit: Improved wording.
In reply to Re: DateTime issues
by haukex
in thread DateTime issues
by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |