laziness, impatience, and hubris | |
PerlMonks |
Re: How to format dates prior to 1970?by karthikkumar (Initiate) |
on Nov 30, 2018 at 14:29 UTC ( [id://1226537]=note: print w/replies, xml ) | Need Help?? |
This Time::Piece strftime, seems problem in windows OS even now with version 1.33 So alternate functions available, which works well. Example this is not giving any output: $t->strftime("%b %d %Y, %A [%H:%M:%S]")So, I am re-writing without strftime, and this is working fine for me even on windows OS. $t->monname . " " . sprintf("%.2d", $t->mday) . " " . $t->year . ", " . $t->fullday . " [" . $t->hms . "]"
In Section
Seekers of Perl Wisdom
|
|