Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: Yesterday's dateby choroba (Cardinal) |
on May 28, 2023 at 20:02 UTC ( [id://11152442]=note: print w/replies, xml ) | Need Help?? |
> Note that this approach will have a problem for those days with less than 24 hours If you want Time::Piece to respect time zones, you need to initialize the object from localtime, not from the class itself:
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|