Time::Piece has been a core module since at least 5.10 so can save you having to install extra modules.
johngg@shiraz:~/perl/Monks$ perl -Mstrict -Mwarnings -MTime::Piece -E +' my $tp = localtime(); say qq{2-digit year - }, $tp->yy();' 2-digit year - 19
I hope this is helpful.
Cheers,
JohnGG
In reply to Re: Two digit year with DateTime?
by johngg
in thread Two digit year with DateTime?
by mitabrev
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |