in reply to DateTime issues
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DateTime issues
by htmanning (Friar) on Apr 03, 2020 at 20:56 UTC |