laziness, impatience, and hubris | |
PerlMonks |
Getting a date/time in a certain format in a Windows and Linux environmentby TASdvlper (Monk) |
on Aug 16, 2004 at 20:24 UTC ( [id://383445]=perlquestion: print w/replies, xml ) | Need Help?? |
TASdvlper has asked for the wisdom of the Perl Monks concerning the following question:
All,
I'm trying to get the date/time in the following format: month/day/year hour:minute:second. In a Linux Environment I did the following: This worked fine, but the problem is the Windows environment I am using is a very slimmed down version of Perl and I don't have the authority to install new modules. So, I'd prefer to use what's available. So, I'm looking for alternatives that would work in both environments. I was looking for way to manipulate the output of localtime() into the above format, but I'm not having much luck. Any help would be greatly appreciated.
Back to
Seekers of Perl Wisdom
|
|