TASdvlper has asked for the wisdom of the Perl Monks concerning the following question:
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.use Date::Manip my $format = "%m/%d/%y %H:%M:%S"; my $start = &UnixDate(&ParseDate("today"), $format);
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.
|
|---|