There's more than one way to do things | |
PerlMonks |
Re^2: Yesterday's dateby kcott (Archbishop) |
on May 29, 2023 at 04:05 UTC ( [id://11152450]=note: print w/replies, xml ) | Need Help?? |
G'day hippo, ++ I agree with your approach; particularly in light of the OP's "I am not concerned about daylight savings time, time zone nor do I need HMS.". Having said that, I believe use of the ONE_DAY constant from Time::Seconds (also a core module) would add clarity. It's the same value:
It works as a direct replacement in your code:
— Ken
In Section
Seekers of Perl Wisdom
|
|